/*swtich整体大小及背景色*/ .wx-switch-input { width: 42px !important; height: 20px !important; background: #50d2c2 !important; } /*白色样式(false的样式)*/ .wx-switch-input::before { width: 41px !important; height: 20px !important; } /*绿色样式(true的样式)*/ .wx-switch-input::after { width: 18px !important; height: 18px !important; } |