我试图使用 Bootstrap 为我的网站。我有单选按钮,我试图使用“按钮”从 Bootstrap 为相同的。
<td style="margin-bottom:0px; padding-bottom: 0px;font-size=12px;vertical-align:bottom;">
<div class="btn-group" data-toggle="buttons" id="topButtonDiv" >
<button type="button" class="btn btn-primary">Home
<input type="radio" id="radio1" ></button>
<button type="button" class="btn btn-primary">Home1
<input type="radio" id="radio2" > </button>
<button type="button" class="btn btn-primary">Home2
<input type="radio" id="radio7"> </button>
</div>
</td>
我面临的问题是,我仍然看到单选按钮中的圆圈,而在Bootstrap示例中,我没有看到这样的圆圈。
http://getbootstrap.com/javascript/#buttons-usage
你能告诉我我错过了什么吗?
4条答案
按热度按时间zte4gxcn1#
如果CSS版本更新不起作用,另一种替代方法是使用CSS手动隐藏单选按钮
xienkqul2#
检查你添加的css的版本,同样的
btn-group
类可以正常工作herefv2wmkja3#
引导单选按钮的标记是错误的,您可以这样做:
此外,你不能把input元素放在button元素中,那是无效的html。
2jcobegt4#
data-toggle="buttons"
将所有内容 Package 在span中class="d-none"