| | |
| | | } |
| | | |
| | | .login-body { |
| | | background: #005599 url(/img/3.jpg?v=1) 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%; |
| | |
| | | } |
| | | |
| | | .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; |
| | | } |
| | | |
| | |
| | | <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"> |
| | |
| | | <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"> |
| | |
| | | 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> |