62 lines
3.1 KiB
HTML
62 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title></title>
|
|
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
|
|
</head>
|
|
<body>
|
|
<div class="all">
|
|
<div class="center">
|
|
<img src="img/indeximg.png" >
|
|
<div class="login">
|
|
<div class="tilte">登陆账号</div>
|
|
<div class="inp"><input type="text" value="" class="name" placeholder="用户名" /></div>
|
|
<div class="inp"><input type="password" value="" class="pass" placeholder="密码" /></div>
|
|
<div class="inp flex">
|
|
<input type="text" class="yzm" placeholder="验证码" />
|
|
<div class="xian"><img src="img/xian.png" ></div>
|
|
<div class="yzm">1234</div>
|
|
</div>
|
|
<div id="denglu" class="denglu">登陆</div>
|
|
</div>
|
|
<div class="footer">
|
|
<!-- ———————————————— 技术支持:山东新医路信息科技有限公司 ——————————————————-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style type="text/css">
|
|
*{ margin: 0; padding: 0;}
|
|
html,body{ width: 100%; height: 100%; overflow: hidden;}
|
|
.all{width: 100%; height: 100%; background: url(img/bg.jpg); background-size: cover; display: flex; justify-content: center; align-items: center;}
|
|
.center{ position: relative;}
|
|
.login{ position: absolute; right: 100px; top: 0px; background: #fff; width: 400px; box-sizing: border-box; padding: 50px 40px;}
|
|
.tilte{ font-size: 30px; color: #0070ff; text-align: center; margin-bottom: 50px;}
|
|
.inp{ border: 1px #ccc solid; margin-bottom: 20px; border-radius: 3px;}
|
|
.inp input{ width: 100%; padding: 15px 20px; box-sizing: border-box; border: 0; outline:0;}
|
|
.flex input{ width: auto; }
|
|
.denglu{ background: url(img/denglu.jpg); width: 317px; height: 49px; text-align: center; line-height: 49px; color: #FFFFFF; margin: 0 auto; margin-top: 30px;
|
|
cursor: pointer;}
|
|
.flex{ display: flex; text-align: center; line-height: 45px; }
|
|
.xian img{ height: 30px; position: relative; top: 7px;}
|
|
.yzm{ flex-basis: 100px;}
|
|
.footer{ position: absolute; bottom: -50px; left: 0; width: 100%; text-align: center; color: #FFFFFF; opacity: 0.7; font-size: 12px;}
|
|
</style>
|
|
<script type="text/javascript">
|
|
$(".denglu").click(function(){
|
|
var name = $(".name").val()
|
|
var pass = $(".pass").val()
|
|
var yzm = $(".yzm").val()
|
|
console.log(yzm)
|
|
if(name == "admin" && pass == "admin"){
|
|
location.href="two.html"
|
|
}
|
|
})
|
|
document.getElementById("denglu").onclick=function(){
|
|
window.location="two3.html";
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|