使用css修改input的文字提示語顏色 修改input的placeholder的顏色
<style>
/* Safari,Chrome WebKit browsers */
input::-webkit-input-placeholder {
color: #ccc;
}
/* 火狐 Mozilla Firefox 4 to 18 */
input:-moz-placeholder {
color: #ccc;
}
/* 火狐 Mozilla Firefox 19+ */
input::-moz-placeholder {
color: #ccc;
}
/* Internet Explorer 10+ */
input:-ms-input-placeholder {
color: #ccc;
}
</style>
相關知識點
市場主流五大瀏覽器內核 http://sharedblog.cn/post/14.html
前端共享博客 http://sharedblog.cn/