how to change place holder color with css3?
This question already has an answer here:
For Mozilla < 19
<style type="text/css">
input:-moz-placeholder {
color: green;
}
</style>
For Mozilla 19 onwards
<style type="text/css">
input::-moz-placeholder {
color: green;
}
</style>
For Google Chrome
<style type="text/css">
input::-webkit-input-placeholder {
color: green;
}
</style>
For IE 10
<style type="text/css">
input:-ms-input-placeholder {
color: green;
}
</style>
链接地址: http://www.djcxy.com/p/12150.html
上一篇: 设计输入的占位符,我该如何做到这一点?
下一篇: 如何用css3更改占位符的颜色?