Rumah > Artikel > hujung hadapan web > 修改input框默认黄色背景
<span style="color: #800000">input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill </span>{<span style="color: #ff0000"> -webkit-box-shadow</span>:<span style="color: #0000ff"> 0 0 0px 1000px white inset !important</span>;<span style="color: #ff0000"> background-color</span>:<span style="color: #0000ff"> rgb(0, 0, 0) !important</span>;<span style="color: #ff0000"> background-image</span>:<span style="color: #0000ff"> none !important</span>;<span style="color: #ff0000"> color</span>:<span style="color: #0000ff"> rgb(0, 0, 0) !important</span>;<span style="color: #ff0000"> -webkit-tap-highlight-color</span>:<span style="color: #0000ff">rgba(0,0,0,0) !important</span>; }
正常情况下直接写这段代码不写!important,如果项目不能生效,需要加!important。