<分区>
我遇到了一个非常大的问题,我无法在登录和注册页面的 Shopify 站点中更改电子邮件和密码输入元素的背景颜色。
我刚刚意识到问题只存在于 chrome 中。
<分区>
我遇到了一个非常大的问题,我无法在登录和注册页面的 Shopify 站点中更改电子邮件和密码输入元素的背景颜色。
我刚刚意识到问题只存在于 chrome 中。
最佳答案
尝试将其放入您的 css 中,它应该会覆盖当前样式...
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="file"],
input[type="number"],
input[type="tel"],
textarea,
select {
background-color: #ff9900;
}
但是
如果它的自动完成那只发生在 chrome 那么 this应该修复它:
您可以使用任何颜色,例如白色,#DDD,rgba(102, 163, 177, 0.45)。
/* Change the white to any color ;) */
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 30px white inset;
}
此外,您可以使用它来更改文本颜色:
/*Change text in autofill textbox*/
input:-webkit-autofill {
-webkit-text-fill-color: yellow !important;
}
关于css - 无法更改电子邮件和密码输入元素背景颜色 Shopify,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47207825/