【发布时间】:2017-08-09 21:08:09
【问题描述】:
在引导文档中,例如http://getbootstrap.com/css/#forms,复选框样式略微圆润且微妙。
但是当我引用 bootstrap 3.3.7 css 并使用这个 html 时
<div class="checkbox">
<label>
<input type="checkbox" id="cancelled">
Cancelled
</label>
</div>
我的复选框看起来像标准的丑陋 HTML 复选框。
同样可以在这里看到https://codepen.io/mathumatix/pen/dzvQvg。我发现了这个问题Why checkbox style is not bootstrap style,它指出 Bootstrap 3.x 不包括复选框的样式。如果是这样,Bootstrap 文档中的复选框样式如何?使用未显示的自定义css?我也尝试使用 Bootstrap 4 alpha,但我仍然没有在复选框上获得任何样式。我所有的其他 UI 元素都有 Bootstrap 样式。我错过了什么?
【问题讨论】: