【发布时间】:2014-11-07 15:18:09
【问题描述】:
我有登录页面,一旦用户首先登录,我想在其中自动填充用户名和密码字段。所以下次如果他回到登录页面,用户名和密码字段需要自动填写,所以他只需点击登录按钮。
我在上面的字段中启用了自动完成功能,但它在 IE 或 chrome 浏览器中不起作用。
<input type="text" id="userName" autofocus="autofocus" value="" tabindex="1" autocomplete="on">
<input type="password" name="password" id="password" value="" tabindex="2" maxlength="20" autocomplete="on">
【问题讨论】:
-
检查您的浏览器设置。它在您登录的其他网站上是否有效?
-
是的,它适用于我的 facebook 和其他网站。想知道自动填充需要采取什么额外步骤吗?..