我被发现这个话题 chrome : how to turn off user agent stylesheet settings?但这对我无济于事。
在 Firefox 中,它显示:
在 Chrome 中,它显示:
Chrome 自动添加 UA 样式表:
所以我的图标无法显示。
怎么关掉。?
最佳答案
试试那个选项
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
input:-webkit-autofill,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0) inset !important;
transition: background-color 5000s ease-in-out 0s !important;
}
@-webkit-keyframes autofill {
to {
background: transparent;
}
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
-webkit-animation-name: autofill;
-webkit-animation-fill-mode: both;
}
关于google-chrome - 如何在 chrome 中关闭用户代理样式表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20799217/