【问题标题】:remember passowrd works in ff but not in ie and chrome记住密码在 ff 中有效,但在 ie 和 chrome 中无效
【发布时间】:2011-02-22 22:02:55
【问题描述】:

似乎我的html登录表单在ff中支持“记住密码”,但在ie和chrome中不支持。谁能告诉我为什么?代码如下:

<form name="login_form" id="login_form" action="" method="POST">
    <div class="login_line">name<input name="user_name" id="user_name_id" size="16" maxlength="16" value="" type="text"></div>
    <div class="login_line">password<input name="password" id="password_id" size="16" maxlength="16" type="password"></div>
    <div class="login_line">&nbsp;<input class="icon icon_accept" value="login" onclick="javascript:handleFunction('action_login', document.getElementById('user_name_id').value, document.getElementById('password_id').value); return false;" type="submit"></div>
</form> <!-- login_form -->

我检查了我在 Chrome 和 IE 中的设置。

【问题讨论】:

    标签: html internet-explorer firefox passwords google-chrome


    【解决方案1】:

    应该可以工作,因为代码是正确的。检查浏览器设置?

    【讨论】:

    • 我已经检查了我在 IE 和 Chrome 中的设置
    【解决方案2】:

    您可能希望在表单中使用onsubmit 而不是onclick...我不确定在文本框上按Enter 是否会在所有浏览器上触发onclick

    <form name="login_form" id="login_form" action="" method="POST" onsubmit="handleFunction('action_login', document.getElementById('user_name_id').value, document.getElementById('password_id').value); return false;">
        <div class="login_line">name<input name="user_name" id="user_name_id" size="16" maxlength="16" value="" type="text"></div>
        <div class="login_line">password<input name="password" id="password_id" size="16" maxlength="16" type="password"></div>
        <div class="login_line">&nbsp;<input class="icon icon_accept" value="login" type="submit"></div>
    </form> <!-- login_form -->
    

    【讨论】:

      【解决方案3】:

      在你的 CSS html 中,body 将 overflow-x = hidden 更改为只是 overflow = hidden

      【讨论】:

        猜你喜欢
        • 2013-10-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-01-16
        • 1970-01-01
        • 2014-04-17
        • 1970-01-01
        • 2012-02-14
        相关资源
        最近更新 更多