IE7下面提示语未显示是怎么回事 ?


这是chrome效果下


 <!--登陆页面-->
<div id="main">
    <div class="logo_title"></div>
    <div class="login">
        <form class="logo_info">
            <input class="text1 mar_b" id="login_username" name="login_user_name" type="text" placeholder="用户名" />
            <input class="text2 mar_b" id="login_user_password" name="password" type="password" placeholder="密码" />
            <div id="login_err_message" class="login_err_message"></div>
            <div id="login_loading" class="login_loading">
                <img src="image/loading_s.gif" />
                <span>登录中,请稍候!</span>
            </div>
            <div class="btn" id="login_submit">登 录</div>
        </form>
    </div>
</div>


 .login_err_message{ color: #f00; text-align: center; text-align: center; line-height: 20px; display: none; }

js


 resizeInput: function () {
        $("input").css({
            border: "1px solid rgb(205, 204, 204)"
        });
        $("#login_err_message").text("").css({ display: "none" });
    },
    checkError: function (msg, ids) {
        for (var i = 0, l = ids.length; i < l; i++) {
            var this_id = ids[i];
            $("#" + this_id).css({
                border: "1px solid #f00"
            })
        }
        var err_obj = $("#login_err_message");
        err_obj.text(msg);
        err_obj.css({ display: "block" });
        this.eventBind();
    },
    checkSuccess: function () {
        var username = $.trim($("#login_username").val()),
            password = $.trim($("#login_user_password").val());

        this.submit(username, password);
    },
    submit: function (usr, pass) {
        $("#login_err_message").css({ display: "none" });
        $("#login_submit").html($("#login_loading").html()).css({
            background: "#ccc"
        });

浏览器兼容性 css

上个号密码忘了 11 years, 8 months ago

这个应该不是css的兼容问题,是js的,将.text()改成.html()试试

饭饱思Y欲 answered 11 years, 8 months ago

Your Answer