1、chrome的输入框背景颜色变成黄色:
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px white inset; /*---- 设置内阴影 ----*/
}
2、input输入框自动填充文字:
<input type="text" readonly onfocus="this.removeAttribute('readonly');" onblur="this.setAttribute('readonly',true);"/> <!--使用input的readonly属性-->