【发布时间】:2016-11-11 07:04:04
【问题描述】:
Bootstrap 4 引入了custom forms 来自定义复选框和单选按钮。这是一种使用简单表单生成以下模板的方法?
复选框:
<label class="c-input c-checkbox">
<input type="checkbox">
<span class="c-indicator"></span>
Check this custom checkbox
</label>
电台:
<label class="c-input c-radio">
<input id="radio1" name="radio" type="radio">
<span class="c-indicator"></span>
Toggle this custom radio
</label>
<label class="c-input c-radio">
<input id="radio2" name="radio" type="radio">
<span class="c-indicator"></span>
Or toggle this other custom radio
</label>
谢谢!
【问题讨论】:
-
所以只需将
input替换为简单的表单元素? -
我不知道如何生成
<span class="c-indicator"></span>
标签: ruby-on-rails twitter-bootstrap simple-form twitter-bootstrap-4