开发的时候遇到了这个情况,又恰巧在前端日刊的推送文章中看到了这个,便尝试了他推荐的一种方法。
修改chrome浏览器渲染黄色背景的时间(推荐)
:-webkit-autofill {
-webkit-text-fill-color: #fff !important;
transition: background-color 5000s ease-in-out 0s;
}
并在此处附上文章的链接:https://funteas.com/topic/5a95b1f49a2833b84c481cc4
感谢大神们的分享。