New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css] 第27天 怎样修改chrome记住密码后自动填充表单的黄色背景? #95
Comments
设置表单属性 autocomplete="off" 或者改变背景颜色为白色或透明 |
input:-webkit-autofill { |
倒是一直没注意过这个问题,搜了下思否已经有提问和回答,基本也能解决问题,包括上面的两个回答,同时CSDN的账号登录也是用上面内阴影的方法解决的。 以下才是重点: 原来重置样式是这样的: input:-webkit-autofill-strong-password {
-webkit-text-security: none !important;
-webkit-user-select: none !important;
cursor: default !important;
font-family: monospace;
}
input:-webkit-autofill, input:-webkit-autofill-strong-password {
background-color: #FAFFBD !important;
background-image: none !important;
color: #000000 !important;
} 都加上了 webkit 内核浏览器,默认样式:http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css 全文关于 |
|
这都是考题??????没有这种需求的根本无法回答。 |
@kokokele 这并不是考题。 |
input{
&:-webkit-autofill {
box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0) inset !important;
-webkit-text-fill-color: #000 !important;
transition: background-color 5000s ease-in-out 0s;
font-size: 14px;
}
} |
|
-webkit-text-fill-color 设置文本颜色,-webkit-box-shadow inset设置填充 |
将forn标签的autocomplete设置为off或将背景颜色改为transparent |
第27天 怎样修改chrome记住密码后自动填充表单的黄色背景?
The text was updated successfully, but these errors were encountered: