[英]How do I keep browser from listing suggestions for input-field (not necessarily the same as disabling autocomplete/autofill)?
I currently have autocomplete='off' on the "form" tag. 我目前在“表单”标签上具有autocomplete ='off'。 I currently have autocomplete='random-stuff' on the "input" tag.
我目前在“输入”标签上有autocomplete ='random-stuff'。 Per many different suggestions I found on Stack Overflow for disabling auto-fill, I have tried various values for the autocomplete attribute: "off", "false", "disabled", "disable", "new-password", "[random]".
根据我在Stack Overflow上发现的用于禁用自动填充的许多不同建议,我已经尝试了autocomplete属性的各种值:“ off”,“ false”,“ disabled”,“ disable”,“ new-password”,“ [random ]”。 Chrome's auto-fill seems to be disabled (somewhat) but the auto-fill light-yellow background still appears if one selects one of the suggestions.
Chrome的自动填充功能似乎已被禁用(某种程度上),但是如果选择了其中一项建议,则仍会出现自动填充浅黄色背景。 But nothing I've tried keeps Chrome from offering suggestions.
但是我尝试过的所有措施都无法阻止Chrome提供建议。
I want to disable auto-fill AND prevent suggestions for the input-field. 我想禁用自动填充功能,并避免对输入字段提出建议。 I'm looking for a solution using any combination of PHP, HTML, CSS, or Javascript.
我正在寻找使用PHP,HTML,CSS或Javascript的任何组合的解决方案。 Thanks.
谢谢。
对于谷歌浏览器69.0.3497.81 autocomplete ='off'工作正常
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.