浏览器输入框自动填充解决办法

emmmmm;今天处理公司后台系统遇到的;登录页面浏览器保存账号密码后;浏览器会自动在其他页面进行填充;
解决如下图:
解决浏览器自动填充input

 


浏览器会默认填充input type值为password的文本框;(填充对象为input[type=password]及前一个input框)

先设置input type=text;然后获取焦点时改变type为password;
然后设置两个宽高为0的input做为浏览器填充物;
然后就解决了。

相关文章:

  • 2021-06-09
  • 2021-11-22
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2021-12-11
  • 2021-06-19
  • 2022-12-23
  • 2021-12-03
  • 2021-12-11
相关资源
相似解决方案