google瀏覽器input標簽自動填充后顏色改變問題解決


1.問題:在Google瀏覽器中,input輸入框自動填充時,顏色會自動改變。和預期設計有出入,

 

 

 2.分析:打開控制台查找元素中我們可以看到,自帶樣式如下

input:-internal-autofill-selected {
   appearance: menulist-button;
   background-color: rgb(232, 240, 254) !important;
    background-image: none !important;
   color: -internal-light-dark(black, white) !important;


免責聲明!

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



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