switch 颜色修改?
发布于 6 年前 作者 xiajie 11508 次浏览 来自 问答

switch 修改前的颜色背景

1 回复
/*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;
}
回到顶部