相关疑难解决方法(0)

增加引导程序复选框的大小

我正在使用官方引导程序文档中的代码创建一个简单的复选框:

<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并更改高度和宽度属性,但这不会增加框的大小。

javascript css bootstrap-4 bootstrap-5

16
推荐指数
6
解决办法
2万
查看次数

仅使用 css 增加引导自定义控制自定义开关大小

您好,我正在尝试仅使用 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)

css twitter-bootstrap

0
推荐指数
1
解决办法
2079
查看次数