為什么需要用帶col-sm-10的div包裹input
? ?<div class="col-sm-10">
? ? ?<input type="password" class="form-control" id="inputPassword3" placeholder="請(qǐng)輸入您的郵箱密碼">
? ?</div>
如上所示:我發(fā)現(xiàn)如果將col-sm-10添加到input的class中無(wú)效,怎么理解?為什么了?
? ?<div class="col-sm-10">
? ? ?<input type="password" class="form-control" id="inputPassword3" placeholder="請(qǐng)輸入您的郵箱密碼">
? ?</div>
如上所示:我發(fā)現(xiàn)如果將col-sm-10添加到input的class中無(wú)效,怎么理解?為什么了?
2016-01-02
舉報(bào)
2016-01-03
class="form-control"在bootstrap就是默認(rèn)為寬度100%;所以要用這個(gè)包裹起來(lái),限定你要的寬度
2016-01-02
input 未閉合。