在FF29 +中输入[type = number]占位符颜色 [英] input[type=number] placeholder color in FF29+
本文介绍了在FF29 +中输入[type = number]占位符颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< input type =textplaceholder =test/>
< input type =numberplaceholder =test/>
如何设计风格?
: - moz-placeholder {
color:red;
opacity:1;
}
:: - moz-placeholder {
color:red;
opacity:1;
}
为什么全局占位符不工作,即使firebug显示它应用?这是一个错误,是一个意图吗?
但是,它似乎实际上为一些用户工作...
<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...
这篇关于在FF29 +中输入[type = number]占位符颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文