Вопрос

<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

enter image description here

Это было полезно?

Решение

It's apparently a bug:

However, it seems to actually work for some users...

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top