当我重置密码输入上 ::placeholder 的样式时,它会在 Chrome 和 Chrome 上变成点。 Safari 浏览器
我在 上使用
all: unset
,占位符变成了点。
HTML:
<input type="password" placeholder="text of placeholder">
CSS:
::placeholder {
all: unset;
}
占位符的错误视觉结果:
有没有办法仍然使用 all: unset
并带回正确显示的占位符的值?
I'm using all: unset
on <input type="password" placeholder="text of placeholder">
and the placeholder turn into dots.
HTML:
<input type="password" placeholder="text of placeholder">
CSS:
::placeholder {
all: unset;
}
The wrong, visual result of placeholder:
Is there any way to still use the all: unset
and bring back the value of placeholder that will show up correctly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
-webkit-text-security:initial;
(https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-security)try
-webkit-text-security: initial;
(https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-text-security)