0
实施Bootstrap Buttons.引导按钮单选按钮显示里面列
当您将一个div内的每个标签,将出现单选按钮。删除div和单选按钮不出现。如何实现内部div和隐藏单选按钮?我们只需要一个div,所以我们可以使用cols。
<div class="btn-group" data-toggle="buttons">
<!--Shows radio button-->
<div>
<label class="btn btn-primary active">
<input type="radio" name="options" id="option1" autocomplete="off" checked> Radio 1 (preselected)
</label>
</div>
<!--Doesn't show radio button-->
<label class="btn btn-primary">
<input type="radio" name="options" id="option2" autocomplete="off"> Radio 2
</label>
<!--Doesn't show radio button-->
<label class="btn btn-primary">
<input type="radio" name="options" id="option3" autocomplete="off"> Radio 3
</label>
</div>