It almost works, except on the checked state, I can't change the label color.
input[type="checkbox"].custom:checked label {
color: #fff;
}
.
input[type="checkbox"].custom:checked + label {
background: #1c6db5;
color: #ffffff;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.