Alex Sazonov Asked:2020-06-05 15:48:10 +0000 UTC2020-06-05 15:48:10 +0000 UTC 2020-06-05 15:48:10 +0000 UTC 如何防止 Chrome 中的密码管理器影响输入中的字体? 772 当您将鼠标悬停在某个项目上时,密码管理器会更改字体。如何避免这种情况?谁面对?我附上两张截图。第一个,当下拉菜单刚刚打开并且一切都很好时,第二个,当我指向一个建议的选项时。 指导前 后。看,自定义占位符也离开了。 javascript 1 个回答 Voted Best Answer Дмытрык 2020-06-05T18:07:58Z2020-06-05T18:07:58Z 找到这个东西:输入电子邮件/密码几次 @-webkit-keyframes autofill { to { color: red; background: transparent; font-family: 'Arial'; font-size: 18px; } } input:-webkit-autofill { -webkit-animation-name: autofill; -webkit-animation-fill-mode: both; } <form action='/123'> <input type="email" name="mail" autocomplete> <input type="password" name="pass" autocomplete> <button type="submit">Send</button> </form>
找到这个东西:输入电子邮件/密码几次