"自动完成=关闭"不适用于Google Chrome浏览器 [英] "AutoComplete=Off" not working on Google Chrome Browser

查看:270
本文介绍了"自动完成=关闭"不适用于Google Chrome浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < form 

我知道在Stackoverflow上有一个类似的问题,但没有一个解决方案适用于我。 autocomplete =offid =search_formmethod =postaction =>
< input autocomplete =offtype =text/>
< / form>

正如您所看到的,我将 autocomplete = off 在表单和输入字段上,但Google Chrome仍会显示此自动完成列表。这不会发生在Firefox和Safari等其他浏览器中。



除了放置 autocomplete = off 在表单标签上

解决方案

这可能是Google Chrome上的一个错误,您无法通过创建隐藏输入来作弊过度。

 < form autocomplete =offid =search_form自动完成功能将获得第一个输入文本以填充数据。 method =postaction => 
< input type =textstyle =display:none/>
< input autocomplete =offtype =text/>
< / form>


I know there is one similar question on Stackoverflow, but none of the solution there worked for me.

<form autocomplete="off" id="search_form" method="post" action="">
    <input autocomplete="off" type="text" />
</form>

As you can see, I put autocomplete=off on BOTH the form and the input field, but Google Chrome still displays this autocompletion list. This doesn't happen in other browsers like Firefox and Safari.

Any other solution other than putting autocomplete=off on the form tag??

解决方案

It may be a bug on Google Chrome, you can't cheat by create an hidden input over. Auto complete feature will get the first input text to fill data.

<form autocomplete="off" id="search_form" method="post" action="">
    <input type="text" style="display:none" />
    <input autocomplete="off" type="text" />
</form>

这篇关于&QUOT;自动完成=关闭&QUOT;不适用于Google Chrome浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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