- input输入框的默认属性
<style>
input{
background:none;
outline:none;
border:none;
}
</style>
- 去掉选中时的蓝色框
<style>
input:focus{
border:none;
}
</style>
- 修改placeholder属性的文字颜色
<style>
input::-webkit-input-placeholder {
/* WebKit browsers */
color: #ccc;
}
input:-moz-placeholder {
/* Mozilla Firefox 4 to 18 */
color: #ccc;
}
input::-moz-placeholder {
/* Mozilla Firefox 19+ */
color: #ccc;
}
input:-ms-input-placeholder {
/* Internet Explorer 10+ */
color: #ccc;
}
</style>