input框,需要隐式显示的时候,不让它自动填充的办法

Posted benbendu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了input框,需要隐式显示的时候,不让它自动填充的办法相关的知识,希望对你有一定的参考价值。

input处理:

通过添加readonly&onfocus =“this.removeAttribute(‘readonly‘);  

<input type="password" name="Password" autocomplete="off" readonly   
onfocus="this.removeAttribute(‘readonly‘);" >  

样式处理:

input[readonly]
  background-color: #fff

 

以上是关于input框,需要隐式显示的时候,不让它自动填充的办法的主要内容,如果未能解决你的问题,请参考以下文章