• 中文
    • English
  • 注册
  • 赞助商广告
    • 查看作者
    • html阻止浏览器自动填充input输入框的账号密码

      方法一(推荐):

      在form表单最前面,添加以下两个input输入框:

      <input name="nouseUsername" type="text" hidden />
      <input name="nousePassword" type="password" hidden />

      这两个输入框是隐藏的,用于承担浏览器记录账号密码的载体。

      html阻止浏览器自动填充input输入框的账号密码

      方法二:

      把input输入框的type类型改成 type="text"  并在input里加上 οnfοcus="this.type='password'" ,举例如下:

      <input type='text' name="password" placeholder="请输入密码" onfocus="this.type='password'"/>

    • 0
    • 0
    • 0
    • 67
    • 请登录之后再进行评论

      登录
    • 返回顶部
    • 做任务
    • 实时动态
    • 偏好设置
    • 到底部
    • 单栏布局 侧栏位置: