1.获取焦点清空内容,失去焦点显示内容
2.改变颜色
input::-webkit-input-placeholder{ color: #ccc; } input::-moz-placeholder{ /* Mozilla Firefox 19+ */ color: #ccc; } input:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */ color: #ccc; } input:-ms-input-placeholder{ /* Internet Explorer 10-11 */ color: #ccc; }