作者:亲亲宝贝的夏天狂想曲_540 | 来源:互联网 | 2022-12-06 19:48
Bootstrap 4.1
如何从焦点上显示的复选框中删除蓝色边框?
我尝试使用轮廓,但是它不起作用。
我使用的代码是:
实时版本或示例是:https :
//jsfiddle.net/hussainabid/mgdjprst/
1> Sebastian Br..:
box-shadow
以下规则有一个:.custom-control-input:focus ~ .custom-control-label::before
。您可以通过添加以下CSS(在Bootstrap CSS之后)将其删除:
.custom-control-input:focus ~ .custom-control-label::before {
box-shadow:none !important;
}
注意:代替!important
您也可以更具体。
例:
.custom-control-input:focus ~ .custom-control-label::before {
box-shadow:none !important;
}
.custom-control-input:focus ~ .custom-control-label::before {
box-shadow:none !important;
}