问题:
1.输入框获取焦点会弹出浏览器保存的账号列表
![在这里插入图片描述](https://img-blog.csdnimg.cn/20181105141228124.png)
2.页面同时存在文本和密码输入框是,自动填充账号信息
![在这里插入图片描述](https://img-blog.csdnimg.cn/20181105142400474.png)
解决方案:
在password输入框前加入隐藏密码框
要点1:务必隐藏的输入框放前面
要点2:隐藏的输入框必须加上属性 name=“password”
要点3:显示的输入框一定不要属性 name=“password”,只需要 type=“password”
<input name="password" autocomplete="off" hidden>
<input type="password" autocomplete="off">