我使用的是Bootstrap 4,我想使用单选和复选框按钮组,但这些按钮显示的是实际的单选和复选框UI元素,如下所示:
上面的例子直接取自文档。我试着删除并重新安装Bootstrap4,删除site.css文件和打开图标的css都无济于事。我还没有找到任何描述这个问题的链接。我使用的是Chrome版本64.0xxxx和VS 2017 MVC5。
下面是CSS和JS文件的加载顺序。
任何帮助都将不胜感激,因为我已经花了几个小时试图追踪这个问题。
发布于 2018-02-26 13:05:21
我所使用的示例没有如下所示的"btn-group-toggle“。
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary active">
<input type="radio" name="options" id="option1" autocomplete="off" checked> Active
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="option2" autocomplete="off"> Radio
</label>
<label class="btn btn-secondary">
<input type="radio" name="options" id="option3" autocomplete="off"> Radio
</label>
</div>
https://stackoverflow.com/questions/48979464
复制相似问题