问题:
On a form I'm working on, Chrome is auto-filling the email and password fields. 在我正在处理的表单上,Chrome浏览器会自动填写电子邮件和密码字段。 This is fine, however, Chrome changes the background colour to a pale yellow colour. 很好,但是Chrome将背景颜色更改为浅黄色。
The design I'm working on is using light text on a dark background, so this really messes up the look of the form - I have stark yellow boxes and near-invisible white text. 我正在研究的设计是在深色背景上使用浅色文本,因此这确实弄乱了表单的外观-我有明显的黄色框和几乎看不见的白色文本。 Once the field is focused, the fields return to normal. 聚焦后,场将恢复正常。
Is it possible to stop Chrome changing the colour of these fields? 是否可以停止Chrome更改这些字段的颜色?
解决方案:
参考一: https://stackoom.com/question/Bfbh/删除Chrome自动完成功能的输入背景色参考二: https://oldbug.net/q/Bfbh/Removing-input-background-colour-for-Chrome-autocomplete
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4275594