input radio 样式修改


input[type="radio"] + label::before {
content: "\a0"; /*不换行空格*/
display: inline-block;
vertical-align: middle;
font-size: 12px;
width: 1em;
height: 1em;
margin-right: .4em;
border-radius: 50%;
border: 1px solid rgba(7, 14, 89, 0.4);
text-indent: .12em;
line-height: 1;
}

input[type="radio"]:checked + label::before {
background-color: #ff0000;
background-clip: content-box;
padding: .0em;
}


input[type="radio"] {
position: absolute;
clip: rect(0, 0, 0, 0);
}


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM