search

Home  >  Q&A  >  body text

css - chrome浏览器input记录上次cookie信息后,有个黄色背景~如何去除!

首次,进来 input 没有背景色,提交信息后,记录cookie了~

下次,打开默认会显示上次的信息,然后 input 就会有一个黄色背景~

请问一下这个黄色背景要怎么去除呢?

黄舟黄舟2786 days ago599

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 11:10:21

    See Chrome’s auto-fill form has a light yellow background. Is there a way to customize it?

    reply
    0
  • PHPz

    PHPz2017-04-17 11:10:21

    This is for the browser, Chrome.
    Searched for such a solution

    input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    }
    

    However, the test found that the color only changed back to the default after the mouse left the input. Before leaving, it was still the yellow background of the browser.
    Original address: http://blog.csdn.net/wangxiaohui6687/article/details/10149579

    reply
    0
  • Cancelreply