css - FF29+ 中的 input[type=number] 占位符颜色

标签 css firefox placeholder

<input type="text" placeholder="test" />
<input type="number" placeholder="test" />

如何设置样式?

:-moz-placeholder {
  color: red;
  opacity: 1;
}

::-moz-placeholder {
  color: red;
  opacity: 1;
}

为什么全局占位符不起作用,即使 firebug 显示它已应用?是bug,还是故意的?

http://jsbin.com/papad/1/edit?html,css,output

enter image description here

最佳答案

这显然是一个错误:

然而,它似乎对某些用户确实有效......

关于css - FF29+ 中的 input[type=number] 占位符颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23512846/

相关文章:

html - 可以在 HTML 元素上声明 CSS 伪类吗?

jquery - 如何通过将 div 拖到顶部来调整它的大小?

html - 链接在 Firefox 中保持蓝色

c# - UITextField PlaceHolder 颜色更改 Monotouch

jquery - 动画占位符文本?

html - 在移动浏览器上查看图像时看起来很糟糕,但在网络浏览器上查看时则完美

html - PageSpeed 洞察 : Load css files after the closing </html>

CSS图像缩小

css - 无法在 Firefox 中垂直对齐跨度的innerHTML

html - 使用 CSS 指定颜色的占位符