输入自动完成=“关闭";无法在Chrome最新版本中使用 [英] input autocomplete="off" not working in Chrome latest version

查看:121
本文介绍了输入自动完成=“关闭";无法在Chrome最新版本中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击输入类型文本字段时,浏览器中保存的地址就会显示出来.我不想展示它. autocomplete ="off"在chrome版本75.0.3770.142(正式版本)(64位)中的表单中的输入字段中不起作用

when I click input type text fields the address saved in browser shows. I do't want to show it. autocomplete="off" not working in input fields within the form in chrome Version 75.0.3770.142 (Official Build) (64-bit)

推荐答案

浏览器并不总是尊重autocomplete="off"属性.
例如,当部分登录表单浏览器仍将尝试保存它时.
如果它不是登录表单的一部分,请尝试autocomplete="new-password"以防止显示自动完成功能. (如此处所述)
如果您使用jQuery,则可能会发现此插件有用 jquery.disableAutoFill

Browsers not always respect autocomplete="off" attribute.
For example when part of login form browsers will still try to save it.
If its not part of login form try autocomplete="new-password" to prevent autocompletion to show. (as stated here)
If you use jQuery you might find this plugin useful jquery.disableAutoFill

这篇关于输入自动完成=“关闭";无法在Chrome最新版本中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆