【发布时间】:2019-11-11 20:09:27
【问题描述】:
我需要更改 HTML5 输入占位符样式,如下所示。
input[type="text"]#myInput::placeholder {
font-size: 13px;
font-family: helvetica;
color: #999;
font-weight: 400;
}
在上面的 sn-p 中,我使用了 #999 色度,但它在 chrome 和 IE 中看起来很像,在 Firefox 中看起来很浅。
我的示例代码在这里:https://codepen.io/JGSpark/pen/MMQxER?&editable=true
请先在 Chrome 中尝试,然后再在 Firefox 中尝试。
P.S:我使用的是 Chrome 75+、Firefox 67+、IE11
谁能帮我让这个在所有浏览器中看起来都相似?
【问题讨论】:
-
你尝试过不透明度吗?
标签: html css google-chrome firefox