组件样式问题

switch开关选择器

改变大小

第一种
.wx-switch-input{width:42px !important;height:20px !important;} .wx-switch-input::before{width:41px !important;height: 20px !important;} .wx-switch-input::after{width: 18px !important;height: 18px !important;} //中间小圆球
第二种  switch{zoom: .6;}

改颜色

<switch bindchange="switchChange" color="#80b1fc"/>
 

猜你喜欢

转载自www.cnblogs.com/miaoyiyan/p/9646510.html
今日推荐