css 美化单选按钮和复选按钮

	
.checkAgreement .checkSure{
	opacity: 0;
}
.checkAgreement input[type=radio]:checked+label{
    background: #E7862A;
    width: .46rem;
    height: .46rem;
    border-radius: 50%;
    border: none;
}
.checkAgreement label{
	width: .46rem;
    height: .46rem;
    border-radius: 50%;
    border: 1px solid #999999;
    position: absolute;
}

.checkAgreement input[type=radio]:checked+label:after{	
	content: '';
    position: absolute;
    width: .25rem;
    height: .15rem;
    background: 0 0;
    top: 0.1rem;
    left: 0.08rem;
    border: 2px solid #FFFFFF;
    border-top: none;
    border-right: none;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

你可能感兴趣的:(web)