// 多选框外框样式
checkbox .wx-checkbox-input {
width: 35rpx;
height: 35rpx;
border-radius: 50%;
}
// 选中后外框样式
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
border-color: #A40000;
}
// 内部样式
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
width: 60%;
height: 60%;
background: #A40000;
border-radius: 100%;
content: '';
transform: translate(-50%, -50%) scale(1);
-webkit-transform: translate(-50%, -50%) scale(1);
}
修改小程序CheckBox样式
最新推荐文章于 2024-07-31 16:37:10 发布