当前位置:Gxlcms > html代码 > 修改input框默认黄色背景

修改input框默认黄色背景

时间:2021-07-01 10:21:17 帮助过:43人阅读

  1. <span style="color: #800000">input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill </span>{<span style="color: #ff0000">
  2. -webkit-box-shadow</span>:<span style="color: #0000ff"> 0 0 0px 1000px white inset !important</span>;<span style="color: #ff0000">
  3. background-color</span>:<span style="color: #0000ff"> rgb(0, 0, 0) !important</span>;<span style="color: #ff0000">
  4. background-image</span>:<span style="color: #0000ff"> none !important</span>;<span style="color: #ff0000">
  5. color</span>:<span style="color: #0000ff"> rgb(0, 0, 0) !important</span>;<span style="color: #ff0000">
  6. -webkit-tap-highlight-color</span>:<span style="color: #0000ff">rgba(0,0,0,0) !important</span>;
  7. }

正常情况下直接写这段代码不写!important,如果项目不能生效,需要加!important。

人气教程排行