Bootstrap 4 beta自定义复选框

时间:2017-09-08 13:52:18

标签: twitter-bootstrap bootstrap-4 twitter-bootstrap-4

有没有办法用.invalid-feedback显示.custom-checkbox?测试版更新后.has-danger课程不再可用。

<label class="custom-control custom-checkbox">
    <input type="checkbox" class="custom-control-input is-invalid" required>
    <span class="custom-control-indicator"></span>
    <span class="custom-control-description">Check this custom checkbox</span>
    <span class="invalid-feedback">
        <strong>Error!</strong>
   </span>
</label>

jsfiddle

0 个答案:

没有答案