gpt4 book ai didi

html - Bootstrap Switch,如何去掉整个switcher的border radius

转载 作者:太空宇宙 更新时间:2023-11-04 12:01:26 25 4
gpt4 key购买 nike

我刚刚使用了 bootstrap-switch - v3.3.1,我不需要边界半径所以我将 border-radius:0 !important; 设置为 .bootstrap-switch.bootstrap -switch-focused 像这样:http://jsfiddle.net/q2zEk/1/ .

.bootstrap-switch.bootstrap-switch-focused {
border-color: #cacaca;
outline: none !important;;
-webkit-box-shadow: none;
box-shadow: none;
border-radius: 0 !important;
}

但是我们可以看到切换器内部有一个小半径的边框。

如何在不影响全局切换器的情况下将整个切换器更改为方形边框。

最佳答案

我通过设置解决问题:

/**wrapper border*/
.bootstrap-switch
{
border-radius: 0px;
}

/**on/off border**/
.bootstrap-switch .bootstrap-switch-handle-on , .bootstrap-switch-handle-off {
border-radius: 0px !important;
}

这是 DEMO

关于html - Bootstrap Switch,如何去掉整个switcher的border radius,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29762205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com