<input type="text" placeholder="test" />
<input type="number" placeholder="test" />
How do I style it?
:-moz-placeholder {
color: red;
opacity: 1;
}
::-moz-placeholder {
color: red;
opacity: 1;
}
Why doesn't the global placeholder work on it, even though firebug shows it's applied? Is it a bug, is it an intention?
http://jsbin.com/papad/1/edit?html,css,output

It's apparently a bug:
However, it seems to actually work for some users...
来源:https://stackoverflow.com/questions/23512846/inputtype-number-placeholder-color-in-ff29