Skip to content

[html] 第69天 怎样禁止表单记住密码自动填充? #494

Open
@haizhilin2013

Description

@haizhilin2013

第69天 怎样禁止表单记住密码自动填充?

Activity

xiangshuo1992

xiangshuo1992 commented on Jun 24, 2019

@xiangshuo1992
Contributor
haizhilin2013

haizhilin2013 commented on Jun 24, 2019

@haizhilin2013
CollaboratorAuthor

对的,是有点关联,但还是有些区别,第27天的题是修改自动填充的背景属于修改样式的范围。第69天的是禁止它自动填充。

thisisandy

thisisandy commented on Jun 24, 2019

@thisisandy

一些浏览器并不align autocomplete, 可以额外 加一个透明的 password 和user name 的输入框。

liuxiaole

liuxiaole commented on Jul 1, 2019

@liuxiaole

一些浏览器并不align autocomplete, 可以额外 加一个透明的 password 和user name 的输入框。

那样你就会得到如下的 console 警告:
[DOM] Multiple forms should be contained in their own form elements; break up complex forms into ones that represent a single action: (More info: https://goo.gl/9p2vKq)

klren0312

klren0312 commented on Jul 2, 2019

@klren0312
Lucenova

Lucenova commented on Sep 18, 2019

@Lucenova

我试了下Chrome浏览器比较新的版本使用autocomplete设置已经不行,还是得用上面大神的方法增加input框,贴一个比较全的链接:
https://www.cnblogs.com/chenqingbin/p/11051192.html

smile-2008

smile-2008 commented on Jan 12, 2021

@smile-2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @liuxiaole@smile-2008@haizhilin2013@thisisandy@klren0312

        Issue actions

          [html] 第69天 怎样禁止表单记住密码自动填充? · Issue #494 · haizlin/fe-interview