修改input占位符(placeholder)字体颜色

785 阅读1分钟

<input type="search" placeholder="搜一搜">

css样式写法:

input::placeholder{ color: #cccccc; }