600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > 管理员登录页面html代码 自己做的一个后台管理员登陆界面 .cshtml

管理员登录页面html代码 自己做的一个后台管理员登陆界面 .cshtml

时间:2023-01-08 21:38:16

相关推荐

管理员登录页面html代码 自己做的一个后台管理员登陆界面 .cshtml

管理员登录L O G I N F O R M

html, body {

margin: 0;

padding: 0;

height: 100%;

width: 100%;

background-image: url(../Content/Images/background.jpg);

background-repeat: no-repeat;

background-size: 100%;

}

.login {

float: left;

height: 30%;

width: 20%;

opacity: 0.8;

background-color: #000;

border-radius: 16px 16px 16px 16px;

}

.login_head {

height: 25%;

width: 100%;

color: white;

line-height: 200%;

text-align: center;

font-family: Andalus;

font-size: 38px;

font-weight: bold;

border-bottom:1px solid #FFF;

border-bottom-left-radius: 16px;

border-bottom-right-radius: 16px;

}

.login_middle {

height: 45%;

width: 100%;

}

.login_bottom {

height: 30%;

width: 100%;

padding-top: 22px;

}

.input {

border: 1px solid #ffd800;

background-color: #808080;

height: 35px;

width: 78%;

font-family: Andalus;

font-size: 20px;

padding-left: 15px;

}

.button {

color: gold;

float: right;

background-color: #000;

font-size: 20px;

height: 40px;

width: 120px;

margin-right: 20px;

border-radius: 10px 10px 10px 10px;

font-family: Andalus;

}

.button:hover {

color: white;

float: right;

background-color: #808080;

font-size: 25px;

height: 40px;

width: 120px;

margin-right: 20px;

border-radius: 10px 10px 10px 10px;

font-family: Andalus;

}

//回车键按下时执行 Login

$("body").keydown(function (e) {

e = e || event;

if (e.keyCode == 13) {

sendLoginData();

}

})

//按下 Login 按钮

function sendLoginData() {

var userName = document.getElementById("UserName").value;

var password = document.getElementById("Password").value;

if (userName == "") {

alert("UserName不能为空!");

return;

}

if (password == "") {

alert("Password不能为空!");

return;

}

$.post("/Account/LoginVerification", { userName: userName, password: password },

function (response) {

if (response == 1) {

window.location.href = "/Admin/Index";

} else {

alert("账户或密码错误!");

}

}, 'json');

}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。