switch 修改前的颜色背景
/*swtich整体大小*/ .wx-switch-input{ width:82rpx !important; height:40rpx !important; } /*白色样式(false的样式)*/ .wx-switch-input::before{ width:80rpx !important; height: 36rpx !important; } /*绿色样式(true的样式)*/ .wx-switch-input::after{ width: 40rpx !important; height: 36rpx !important; }