Chrome会忽略autocomplete ="off" [英] Chrome ignores autocomplete="off"

查看:98
本文介绍了Chrome会忽略autocomplete ="off"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个使用标签箱下拉菜单的Web应用程序.此功能在除Chrome浏览器(版本21.0.1180.89)之外的所有浏览器中都很好用.

I've created a web application which uses a tagbox drop down. This works great in all browsers except Chrome browser (Version 21.0.1180.89).

尽管input字段和具有autocomplete="off"属性的form字段,Chrome仍坚持显示该字段先前条目的下拉历史记录,这使标记框列表消失了.

Despite both the input fields AND the form field having the autocomplete="off" attribute, Chrome insists on showing a drop down history of previous entries for the field, which is obliterating the tagbox list.

推荐答案

更新

Chrome现在似乎忽略了style="display: none;"style="visibility: hidden;属性.

It seems now Chrome ignores the style="display: none;" or style="visibility: hidden; attributes.

您可以将其更改为:

<input style="opacity: 0;position: absolute;">
<input type="password" style="opacity: 0;position: absolute;">

根据我的经验,Chrome仅自动完成前一个<input type="password">和上一个<input>.所以我添加了:

In my experience, Chrome only autocompletes the first <input type="password"> and the previous <input>. So I've added:

<input style="display:none">
<input type="password" style="display:none">

<form>的顶部,案件已解决.

To the top of the <form> and the case was resolved.

这篇关于Chrome会忽略autocomplete ="off"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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