首页 > 解决方案 > 尝试将其设置到标签右侧时,Bootstrap 4 复选框未出现

问题描述

我试图让复选框显示在标签的右侧。我在片段中的代码显示了右侧出现的复选框,但是当我将相同的代码应用到我的项目时,该复选框不会出现在我的浏览器中,并且在本例中为 390.00 的标签会突出显示。我在下面提供了一张图片,向您展示我的意思。有谁知道问题可能是什么?这是从 Bootstrap 中获取复选框元素。

在此处输入图像描述

"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="radio1" id="radio1">
<label for="acme">390.00</label>
                                <input type="checkbox" value="390.00" name="acme_bill" id="acme" onclick="updateTotal()">
                                
                            </div>

标签: htmlcssbootstrap-4

解决方案


推荐阅读