pc端:
// WebKit 谷歌
input::-webkit-input-placeholder {
color: #ccc;
}
// 火狐
input::-moz-placeholder {
color: #ccc;
}
// IE
input:-ms-input-placeholder {
color: #ccc;
}
微信小程序:
html:
<input placeholder-class="phcolor" class="input-text" name="username" placeholder="用户名" />
css:
.phcolor{
color: #18acff;
}