chrome中hack解决input:-webkit-autofill自定义样式

在使用chrome浏览器设计网页时,想将input背景改为透明,也就是web

background-color:transparent;chrome

但是效果并不如人意segmentfault

hack方法:浏览器

input:-webkit-autofill,
        textarea:-webkit-autofill,
        select:-webkit-autofill{
            -webkit-box-shadow: 0 0 0 1000px transparent inset;
        }
View Code

1000px能够尽量的小~~ide

参考:解决方案spa

更多知识分享:微笑空间站设计

相关文章
相关标签/搜索