-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[html] 第13天 html5中的form怎么关闭自动完成? #38
Comments
设置form的autocomplete属性为off |
autocomplete="off" |
h5新增的补全功能,菜鸟教程上写的比较含糊比较难懂; 一般业务下不会调整这个自动完成,因为对产品来说简化用户操作,建议打开 |
在 |
看到这个问题我懵逼了,不知道啥是自动完成 |
@hc951221 正好学习下,查漏补缺 |
TIM截图20190919152612.png
|
自动补全,自动完成第一反应不知道问的啥 |
操作表单form的autocomplete属性值 <form action="demo_form.html" method="get" autocomplete="off">
First name:<input type="text" name="fname"><br>
E-mail: <input type="email" name="email"><br>
<input type="submit">
</form> |
也许把问题改成“自动填充”或者“自动补全”会好一点。 |
autocomplete=“off“ |
|
密码加onfocus="this.type='password" |
首先这个问题是一个不值得回答的问题,浏览器的自动填充功能是现代浏览器必备的功能,设计出来就是要使用的,没事你关闭干嘛。 上面回答使用 如果非要关闭浏览器自动填充,那么使用google搜索
|
autocomplete="off",浏览器默认开启 |
|
autocomplete = "off" |
第一时间以为是form表单的自动提交,看了评论才看清楚,autocomplete设置为off,但是有时不生效,这个时候要修改type为newpassword |
将autocomplete的属性设置为off |
在HTML5中,可以通过设置autocomplete属性来控制表单字段的自动完成功能。默认情况下,所有输入类型都会开启自动完成功能。 要关闭特定表单字段的自动完成功能,只需将该字段的autocomplete属性值设为"off"或者其他非空白字符串(如"false")即可 |
autocomplete属性设置为off |
第13天 html5中的form怎么关闭自动完成?
The text was updated successfully, but these errors were encountered: