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;