我正在使用官方引导程序文档中的代码创建一个简单的复选框:
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customCheck" name="example1">
<label class="custom-control-label" for="customCheck">Check this custom checkbox</label>
</div>
Run Code Online (Sandbox Code Playgroud)
我想知道如何使复选框比当前大?我曾尝试编辑 csscustomCheck并更改高度和宽度属性,但这不会增加框的大小。
您好,我正在尝试仅使用 css 增加自定义控件自定义开关元素的大小,但它不起作用。
我的自定义开关现在是这个例子中的默认大小,但我需要它的大小更大:https : //getbootstrap.com/docs/4.2/components/forms/
我们没有在我们的项目中使用 scss,我为此找到的每个解决方案都是 scss 解决方案,这就是为什么我正在寻找纯香草 css 解决方案。
我的自定义开关代码与此类似:
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch1">
<label class="custom-control-label" for="customSwitch1">Toggle this switch element</label>
</div>
Run Code Online (Sandbox Code Playgroud)