解決input自動填充賬號密碼時的背景色
input:-webkit-autofill:自動填充 class 類名;
-webkit-box-shadow:使用盒子陰影遮擋input背景色;
-webkit-text-fill-color: 設置填充的字體的顏色;
border-radius:一定要設為 0,默認是有弧度的;
width:長度與原始 input 保持一致,視實際情況而定;
padding-left:字體左側的間距與原始字體間距保持一致,視實際情況而定;
input:-webkit-autofill {
box-shadow:0 0 0 1000px white inset !important;
-webkit-text-fill-color: #fff !important;
}
input:-internal-autofill-previewed,
input:-internal-autofill-selected {
transition: background-color 5000s ease-in-out 0s !important;
}

浙公網安備 33010602011771號