我想使用Bootstrap 4创建一个带有标签和自定义复选框的列表组。
答案 0 :(得分:0)
您的意思是这样的吗?
答案 1 :(得分:-1)
<div class="list-group checkbox-list-group">
<div class="list-group-item"> <label><input type="checkbox"><span class="list-group-item-text"><i class="fa fa-fw"></i> Default</span></label></div>
<div class="list-group-item list-group-item-success"><label> <input type="checkbox"><span class="list-group-item-text"><i class="fa fa-fw"></i> Success</span></label></div>
<div class="list-group-item list-group-item-info"><label> <input type="checkbox"><span class="list-group-item-text"><i class="fa fa-fw"></i> Info</span></label></div>
<div class="list-group-item list-group-item-warning"><label> <input type="checkbox"><span class="list-group-item-text"><i class="fa fa-fw"></i> Warning</span></label></div>
<div class="list-group-item list-group-item-danger"><label> <input type="checkbox"><span class="list-group-item-text"><i class="fa fa-fw"></i> Danger</span></label></div>
</div>
此