Home  >  Article  >  Web Front-end  >  Modify the default yellow background of the input box

Modify the default yellow background of the input box

WBOY
WBOYOriginal
2016-11-30 23:59:321591browse
<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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn