【发布时间】:2015-07-18 21:45:11
【问题描述】:
我有用户注册表。表单包含用户名和密码字段。 在用户注册时,用户名和密码字段会自动填充值。
我使用了表单“自动完成”属性,但在 chrome 浏览器上不起作用。
这是我的代码,
<form method="post" action="" autocomplete="off">
<input type="text" id="first_name" name="first_name">
<input type="text" id="last_name" name="last_name">
<input type="text" id="username_name" name="username_name">
<input type="text" id="password" name="password">
【问题讨论】: