标签:nbsp :focus type blog 改变 logs inpu hold ref
HTML:
<input type="text" placeholder="sample text"/>
CSS:
input::-webkit-input-placeholder { color: #999; } input:focus::-webkit-input-placeholder { color: red; } /* Firefox < 19 */ input:-moz-placeholder { color: #999; } input:focus:-moz-placeholder { color: red; } /* Firefox > 19 */ input::-moz-placeholder { color: #999; } input:focus::-moz-placeholder { color: red; } /* Internet Explorer 10 */ input:-ms-input-placeholder { color: #999; } input:focus:-ms-input-placeholder { color: red; }
标签:nbsp :focus type blog 改变 logs inpu hold ref
原文地址:http://www.cnblogs.com/loveyunk/p/6822429.html