请问各位大神怎么修改组件switch的宽度

发布于 8 年前作者 min906291 次浏览最后编辑 8 年前来自 ask

我百度一下出现一个攻略:

然后我改成:

/*swtich样式-start*/

/*swtich整体大小*/

.wx-switch-input{

width:162rpx !important;

height:75rpx !important;

}

/*白色样式(false的样式)*/

.wx-switch-input::before{

width:160rpx !important;

height:75rpx !important;

}

/*绿色样式(true的样式)*/

.wx-switch-input::after{

/* margin-left:100rpx !important;  */

width: 75rpx !important;

height: 75rpx !important;

}

/*swtich样式end*/

最后出现这样的@@???:


请问大神门这个怎么破@@。。。。。。。。。。。

2 回复
xiuyingshen
xiuyingshen1 楼6 年前

怎么解决的,大哥

naqiu
naqiu2 楼6 年前

transform:scale(0.6) !important;   这样解决