默认input的样式
input{
height: 40px;
width: 300px;
line-height: 40px;
font-size: 20px;
text-align: center;
}
<input type="text" placeholder="请输入你的账号">
存在兼容性问题
input::-webkit-input-placeholder{ // 针对 谷歌 内核
font-weight:600;
color:#f00;
line-height:40px;
}
input:-moz-placeholder{ // 火狐
font-weight:600;
color:#f00;
color:#f00;
}
input:-ms-input-placeholder{ // 微软ie
font-weight:600;
color:#f00;
color:#f00;
}