如何解决如何删除某些主要浏览器的自动填充样式?
我想重置所有浏览器自动填充样式,但即使是 Chrome 也无法重置。
您可以在下图中看到 Safari 自动填充样式。我尝试重新设置过滤器、背景过滤器、背景图像、背景颜色等,但都没有效果。
在 macOS (Big Sur 11.2.3) 自动填充样式上查看 Chrome (89.0.4389.90 (x86_64)) 链接上的图片:
我现在将这种样式与 AntDesign 表单组件一起使用。
/* webkit autofill settings */
input:-internal-autofill-selected,input:-webkit-autofill,input:autofill,input:-webkit-autofill:hover,input:autofill:hover,input:-webkit-autofill:focus,input:autofill:focus,textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:autofill:hover,textarea:-webkit-autofill:focus,textarea:autofill:focus,select:-webkit-autofill,select:autofill,select:-webkit-autofill:hover,select:autofill:hover,select:-webkit-autofill:focus,select:autofill:focus {
color: rgba(0,0.85) !important;
background-color: #fff !important;
background-image: none !important;
border: none !important;
transition: all 0.3s !important;
appearance: auto !important;
-webkit-animation-name: unset;
-webkit-box-shadow: 0 0 0 50px black inset;
-webkit-text-fill-color: white;
filter: none;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。