我用谷歌搜索,发现了一些显而易见的东西,一如既往的拐杖:
input:-webkit-autofill {
transition: all 5000s ease-in-out 0s;
}
或者
-webkit-box-shadow: 0 0 0px 1000px (цвет который будет перекрывать) inset !important;
伪解决方案:
autocomplete="off"
嗯,我自己尝试了一下:
.modal .input-container input:autofill,
.modal .input-container input:-webkit-autofill,
.modal .input-container input:-webkit-autofill-strong-password,
.modal .input-container input:-webkit-autofill-strong-password-viewable,
.modal .input-container input:-webkit-autofill-and-obscured {
background-color: transparent !important;
}
没有帮助。所有测试均在 Safari 中进行
这是谷歌添加的一件非常可悲的事情,你看这样更好......
找到了以下解决方案:
它解决了背景和文本颜色的问题,但无法更改字体。