checkbox .wx-checkbox-input {
? border-radius: 50%; /* 圓角 */
? width: 40rpx; /* 背景的寬 */
? height: 40rpx; /* 背景的高 */
}
/* 選中后的 背景樣式 (紅色背景 無邊框 可根據(jù)UI需求自己修改) */
checkbox .wx-checkbox-input.wx-checkbox-input-checked {
? border: none;
? background: red;?
}
/* 選中后的 對勾樣式 (白色對勾 可根據(jù)UI需求自己修改) */
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
? border-radius: 50%; /* 圓角 */
? width: 40rpx; /* 選中后對勾大小,不要超過背景的尺寸 */
? height: 40rpx; /* 選中后對勾大小,不要超過背景的尺寸 */
? line-height: 40rpx;
? text-align: center;
? font-size: 30rpx; /* 對勾大小 30rpx */
? color: #f0759a; /* 對勾顏色 白色 */
? background: transparent;
? transform: translate(-50%, -50%) scale(1);
? -webkit-transform: translate(-50%, -50%) scale(1);
}