微信小程序中如何改变switch的样式

.wx-switch-input{
width:80rpx !important;
height:48rpx !important;
}
/白色样式(false的样式)/
.wx-switch-input::before{
width:75rpx !important;
height: 44rpx !important;
}
/白色小球样式(true的样式)/
.wx-switch-input::after{
width: 40rpx !important;
height: 40rpx !important;
}

猜你喜欢

转载自blog.csdn.net/weixin_44738158/article/details/123260660