【发布时间】:2015-03-16 17:20:49
【问题描述】:
是否需要使用 col-sm-9 在第二个 div 中制作 12 col 或者我可以使用 col-sm-4 使输入字段变小。是否有其他方法可以在引导表单中使输入字段变小 class="形式-水平”。
<form class="form-horizontal">
<div class="form-group">
<label for="label" class="col-sm-3 control-label">Label</label>
<div class="col-sm-9">
<input class="form-control textLabel" type="text" id="label" autocomplete="off"/>
</div>
</div>
</form>
【问题讨论】:
-
您可以使用 col-sm-4,但如果它小于 7,下一列可能会浮动在它旁边 - 所以在 col-X- 之后的 div
<div class="clearfix"></div>上使用 clearfix 4