解决办法:
把以下代码复制粘贴在css文件的前部,其中的具体设置项可改。
/* Change autocomplete styles in WebKit */input:-webkit-autofill,input:-webkit-autofill:hover, input:-webkit-autofill:focusinput:-webkit-autofill, textarea:-webkit-autofill,textarea:-webkit-autofill:hovertextarea:-webkit-autofill:focus,select:-webkit-autofill,select:-webkit-autofill:hover,select:-webkit-autofill:focus { border: 1px solid green; -webkit-text-fill-color: green; -webkit-box-shadow: 0 0 0px 1000px #000 inset; transition: background-color 5000s ease-in-out 0s;}