Styling input placeholder (default and focus state) in Chrome 42
This question already has an answer here:
If you have a list of comma seperated selectors like that and a browser doesn't recognise even one of those selectors it will ignore all selectors in that list.
 In your example, the -moz prefix for Firefox will not be recognised by Chrome.  
The fix is to create separate rules for each different prefix.
我认为这个代码将起作用:
input[type="text"]::-webkit-input-placeholder {
   color: #fff;
}
上一篇: 点击事件如何更改占位符颜色?
