switch 颜色修改?

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

switch 修改前的颜色背景

1 回复
bcui
bcui1 楼5 年前
/*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;
}