表单 – 浏览器如何确定哪些表单字段是用户名/密码?
发布时间:2020-12-14 16:35:24 所属栏目:资源 来源:网络整理
导读:现代浏览器保存密码.哪个标准会影响这个决定? 背景: 我有一个注册页面,其中包含以下表格: form action="/BlaBla/Account/Register" method="post" div fieldset legendAccount Information/legend p label for="username" Username:/label input id="user
现代浏览器保存密码.哪个标准会影响这个决定?
背景: 我有一个注册页面,其中包含以下表格: <form action="/BlaBla/Account/Register" method="post"> <div> <fieldset> <legend>Account Information</legend> <p> <label for="username"> Username:</label> <input id="username" name="username" type="text" value="" /> </p> <p> <label for="email"> Email:</label> <input id="email" name="email" type="text" value="" /> </p> <p> <label for="invitationCode"> Invitation Code:</label> <input id="invitationCode" name="invitationCode" type="text" value="" /> </p> <p> <label for="securityQuestion"> Security question:</label> <input id="securityQuestion" name="securityQuestion" type="text" value="" /> </p> <p> <label for="securityAnswer"> Security answer:</label> <input id="securityAnswer" name="securityAnswer" type="text" value="" /> </p> <p> <label for="password"> Password:</label> <input id="password" name="password" type="password" /> </p> <p> <label for="confirmPassword"> Confirm password:</label> <input id="confirmPassword" name="confirmPassword" type="password" /> </p> <p class="buttons"> <input type="submit" value="Register" /> </p> </fieldset> </div> </form> Mozilla似乎认为字段securityAnswer和密码是用户/ pw字段,带来尴尬的后果(安全答案存储为用户名是坏的). 解决方法
我猜它假设“密码”上方的字段是用户名.您可以尝试重新订购它们.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 在HTML5中使用什么而不是div元素
- html – 如何使文本自动缩小以适合div?
- 什么是一些优秀的HTML 5,CSS 3和JavaScript博客?
- HTML – 电子邮件图表 – 酒吧,区域和饼图
- HTML – 文本字段“发光”效果,如Twitter和Tumblr登录页面?
- cache-control – 什么是设置no-cache =“Set-Cookie”
- html – 为什么位置绝对会使页面溢出?
- html – 在文本输入区域内添加位置标记glypphicon
- domain-name-system – 如何防止Windows 2008 R2服务器上的
- 利用jquery动画特效和css打造的侧边弹出垂直导航