【问题标题】:How to stop form auto fill如何停止表单自动填写
【发布时间】:2019-10-24 10:59:10
【问题描述】:

我想阻止我的登录表单自动填写用户名和密码。 我使用了 autocomplete ="off" 但这似乎无济于事 试过这个:

    <input type="text" name="username" class="form-control" placeholder="" autocomplete="off">
    <input type="password" name="password" class="form-control" placeholder="" autocomplete="off">

【问题讨论】:

  • 哪些浏览器? autocomplete 在许多浏览器中不能正常工作;请参阅各个浏览器上的注释here
  • 我正在使用 chrome

标签: forms input autocomplete


【解决方案1】:

您可以完全关闭表单的自动完成功能,因为它只是一个登录表单&lt;form autocomplete="off"&gt;&lt;/form&gt;

【讨论】:

  • 看到您也将占位符留空,您不妨将其完全取下
猜你喜欢
  • 2022-12-04
  • 2013-08-31
  • 2022-11-06
  • 2020-11-08
  • 2014-01-24
  • 2013-07-30
  • 2021-06-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多