在使用chrome浏览器设计网页时,想将input背景改成透明,也就是
background-color:transparent;
可是效果并不如人意
hack方法:
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
-webkit-box-shadow: 0 0 0 1000px transparent inset;
}
1000px可以尽可能的小~~
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r50378.shtml