如何取消烦人的浏览器默认输入框样式?
你可以用input的伪类:after或者before来控制它的样式,我就复制一段我写的样式:
input[type="radio"]{
appearance:none;
-webkit-appearance:none;
font-family:"icon"!important;
vertical-align:middle;
border:none;
color:#808080;
font-size:1.2rem;
margin-top:-4px;
margin-right:3px;
line-height:1;
outline:0;
background:00;
}
input[type="radio"]:checked::before{
content:"\e617";
color:#fd6f27;
}
Copyright © 广州京杭网络科技有限公司 2005-2025 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有