如何改变小程序swtich开关组件的?

发布于 7 年前作者 yancui10377 次浏览最后编辑 7 年前来自 issues

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



然后我改成:

/*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*/



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


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

1 回复
xiuying51
xiuying511 楼5 年前

设置zoom和color能应对大部分样式修改吧