Home > Article > Web Front-end > Modify the default yellow background of the input box
<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>; }
Under normal circumstances, just write this code without writing it! important, if the project cannot take effect, you need to add it! important.