html - 引导单选按钮组未正确显示
问题描述
我不知道为什么,但单选按钮组显示按钮/标签和单选按钮分开,与引导网站上的示例不同
代码只是从引导程序复制粘贴(我还包括父 div)
<div class="col-5 d-flex align-items-end justify-content-end">
<div class="btn-group-vertical" role="group" aria-label="Basic radio toggle button group">
<input type="radio" class="btn-check" name="btnradio" id="btnradio1" autocomplete="off" checked>
<label class="btn btn-outline-primary" for="btnradio1">Radio 1</label>
<input type="radio" class="btn-check" name="btnradio" id="btnradio2" autocomplete="off">
<label class="btn btn-outline-primary" for="btnradio2">Radio 2</label>
</div>
</div>
我怎样才能使它看起来像 bootsrap 示例中的那样
解决方案
推荐阅读
- google-apps-script - 尝试创建一个脚本,如果他们回答错误,则在表单提交时向提交者发送一封电子邮件
- r - 有没有办法手动调整猿/植物工具中系统发育的颜色渐变边界?
- ios - SwiftUI - 使 Picker 默认值成为占位符
- bash - 在 Bash 中分配变量时如何替换“eval”
- python - Python Logging - 创建一个日志文件,列出在 For 循环中引发错误的文件
- mysql - 仅过滤画面中的字母值
- ruby-on-rails - Rails 中的implicit_order_column 和default_scope 有什么区别?
- android - notifyDataSetChanged 不更新视图
- javascript - 我想将变量数组存储为 $_SESSION 变量
- laravel - 如何从 Laravel 获取 Json 响应值