Home > Web Front-end > HTML Tutorial > Html prevent autoComplete_html/css_WEB-ITnose

Html prevent autoComplete_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:30:24
Original
1356 people have browsed it

    今天收到两个Tester提的Bug是在部分Form中,有自动填充现象,Chrome还好是focus时候有下拉提示,Edge和Firefox直接填充了,第一时间想到了autocomplete属性,但是无果,因为不了解Browser填充原理,只能暂时通过Google来解决,而且是Try-Try-Try,不知道那个属性可以有作用,最后发现一个解决办法Disabling Chrome Autofill,没错,又是万能的Stackoverflow,以前都是只看被采纳的Answer,这次最终选择的是没有被采纳的。

<!-- fake fields are a workaround for chrome autofill getting the wrong fields --><input style="display:none" type="text" name="fakeusernameremembered"/><input style="display:none" type="password" name="fakepasswordremembered"/>
Copy after login

    这个方法只进行了Edge/Firefox/Chrome的测试,如果有需要,请自行测试,测试结果可以Append到Comment中。(如果不起作用,可以尝试autocomplete属性)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template