css改变CheckBox的默认样式

 

 

.so_far {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1.5rem;
}
.so_far_check {
    margin-right: .1rem;
    display: inline-block;
}
.weui-check {
    position: absolute;
    left: -9999em;
}
.weui-check:checked+.suggest_round {
    background-color: #ff7561;
    border: none;
}
.suggest_round {
    display: inline-block;
    vertical-align: middle;
    background-color: #fff;
    width: .38rem;
    height: .38rem;
    line-height: .40rem;
    border: 1px solid #9a9a9a;
    border-radius: 50%;
}
.so_far_txt {
    display: inline-block;
    vertical-align: middle;
}


.so_far_check:checked+label:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 9px;
    height: 4px;
    border: 2px solid #424242;
    border-top-color: transparent;
    border-right-color: transparent;
    transform: rotate(-45deg);
    -ms-transform: rotate(-60deg);
    -moz-transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
}

你可能感兴趣的:(web)