chrome中hack解決input:-webkit-autofill自定義樣式


在使用chrome瀏覽器設計網頁時,想將input背景改成透明,也就是

background-color:transparent;

可是效果並不如人意

hack方法:

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

1000px可以盡可能的小~~

參考:解決方案

更多知識分享:微笑空間站

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM