代码部分:
// 复选框形状
>>>checkbox .wx-checkbox-input {
// 复选框中对号的位置的更改
margin-right:8rpx;
width: 32rpx;
height: 32rpx;
border-radius: 50% !important;
border: 2rpx solid #828181 !important;
}
>>>checkbox .wx-checkbox-input.wx-checkbox-input-checked {
border: 2rpx solid #0c3ca8 !important;
background-color: #0c3ca8 !important;
color: #FFFFFF !important;
}
>>>checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
color: #FFFFFF !important;
}
// 复选框对勾大小、位置
radio::before,
checkbox::before {
font-family: "cuIcon";
content: "\e645"; // 对勾,在此可更改图标,为空则无图标
position: absolute;
color: #ffffff !important;
top: 50%;
margin-top: -8px;
margin-left: 7rpx;
font-size: 24rpx;
line-height: 32rpx;
pointer-events: none;
transform: scale(1, 1);
transition: all 0.3s ease-in-out 0s;
z-index: 9;
}
结果展示:
