Twitter bootstrap 为选择表单元素使用引导样式
如何在Twitter bootstrap 为选择表单元素使用引导样式,twitter-bootstrap,html-select,Twitter Bootstrap,Html Select,如何在元素上应用引导样式。我没有看到任何使用引导css的表单元素的示例。我不知道这是有意的还是引导可以很好地与select元素配合使用?请开导我 添加了.form控件样式,但select元素在表单上看起来像外星人:)引导文档上的演示显示了select。从字段集中删除“禁用”将给出示例代码: <form role="form"> <fieldset> <div class="form-group"> <label for="dis
元素上应用引导样式。我没有看到任何使用引导css的
表单元素的示例。我不知道这是有意的还是引导可以很好地与select元素配合使用?请开导我
添加了.form控件
样式,但select元素在表单上看起来像外星人:)引导文档上的演示显示了select。从字段集中删除“禁用”将给出示例代码:
<form role="form">
<fieldset>
<div class="form-group">
<label for="disabledTextInput">Disabled input</label>
<input type="text" id="disabledTextInput" class="form-control" placeholder="Disabled input">
</div>
<div class="form-group">
<label for="mySelect">Disabled select menu</label>
<select id="mySelect" class="form-control">
<option>Disabled select</option>
<option>Disabled select</option>
<option>Disabled select</option>
<option>Disabled select</option>
</select>
</div>
<div class="checkbox">
<label>
<input type="checkbox"> Can't check this
</label>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</fieldset>
</form>
禁用输入
禁用选择菜单
禁用选择
禁用选择
禁用选择
禁用选择
不能检查这个
提交
请参见操作:添加class.form控件,为其提供基本的引导样式,然后根据需要在您自己的css中更改该样式。@BillyMoat请参见编辑