<分区>
我需要如下更改 HTML5 输入占位符样式。
input[type="text"]#myInput::placeholder {
font-size: 13px;
font-family: helvetica;
color: #999;
font-weight: 400;
}
在上面的代码片段中,我使用了#999 色度,但它在 chrome 和 IE 中看起来很不错,在 Firefox 中看起来很浅。
我的示例代码在这里:https://codepen.io/JGSpark/pen/MMQxER?&editable=true
请先在 Chrome 中尝试此操作,然后再在 Firefox 中尝试。
P.S: 我使用的是 Chrome 75+, Firefox 67+, IE11
任何人都可以帮助我使它在所有浏览器中看起来都相似吗?