username@email.com
2023-02-28 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c
zhengcaioa/zhengcaioa/Views/Home/login.cshtml
@@ -41,7 +41,7 @@
        }
        .login-body {
            background: #005599 url(/img/3.jpg) center bottom no-repeat fixed;
            background: #005599 url(/img/3.jpg?v=2) center bottom no-repeat fixed;
            background-size: cover;
            width: 100%;
            height: 100%;
@@ -67,12 +67,12 @@
        }
        .login-body .login-wrap {
            background: url(/img/images/loginbg.png) no-repeat;
          /*  background: url(/img/images/loginbg.png) no-repeat;*/
            background-size: 100%;
            width: 450px;
            height: 338px;
            margin-left: 180px;
            margin-bottom:20px;
            margin-left: 70%;
            margin-bottom:100px;
            padding: 40px 70px 30px;
        }
@@ -232,11 +232,11 @@
    <div class="container">
        <form class="form-signin" action="/Home/Login" method="post">
            <div class="form-signin-heading text-center">
                <img src="~/img/images/logo.png?v=3" alt="" style="height:100px;" />
                <img src="~/img/images/logo.png?v=4" alt="" style="height:100px;margin-left:85%;margin-bottom:10%;" />
            </div>
            <div class="login-wrap">
                <div class="form-group has-feedback">
                    <input name="txtID" type="text" class="form-control" placeholder="登录账号" autofocus value="">
                    <input name="txtID" type="text" class="form-control" placeholder="登录账号" autofocus value="" >
                    <span class="glyphicon glyphicon-user form-control-feedback"></span>
                </div>
                <div class="form-group has-feedback">
@@ -257,7 +257,7 @@
                        &nbsp;<input name="hidIp" id="hidIp" type="hidden" class="form-control">
                    </div>
                </div>
                <button class="btn btn-lg btn-login btn-block" type="submit">
                <button class="btn btn-lg btn-login btn-block" id="login" type="submit">
                    登 录
                </button>
                <div class="row">
@@ -345,6 +345,16 @@
        else {
            console.log("请使用主流浏览器:chrome,firefox,opera,safari");
        }
        //回车事件
        document.onkeydown = function (event) {
            var e = event || window.event;
            if (e && e.keyCode == 13) { //回车键的键值为13
                $("#login").click(); //调用登录按钮的登录事件
            }
        };
    </script>
</body>
</html>