HTML5 placeholder占位符颜色自定义
回到相关文章 »代码:
CSS代码:
::-moz-placeholder { color: #369; } ::-webkit-input-placeholder { color:#369; } :-ms-input-placeholder { color:#369; }
HTML代码:
<label for="email">邮箱:</label> <input id="email" type="email" placeholder="zhangxinxu@zhangxinxu.com" size="26" />