112 lines
4.1 KiB
HTML
112 lines
4.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" style="display: none;">登陆账号</div>
|
|
<div class="clearBox inp_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>
|
|
<div class="footer">
|
|
<!-- ———————————————— 技术支持:山东新医路信息科技有限公司 ——————————————————-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style type="text/css">
|
|
input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill {
|
|
-webkit-text-fill-color: #ededed !important;
|
|
-webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
|
|
background-color:transparent;
|
|
background-image: none;
|
|
transition: background-color 50000s ease-in-out 0s; //背景色透明 生效时长 过渡效果 启用时延迟的时间
|
|
}
|
|
input {
|
|
background-color:transparent;
|
|
}
|
|
input:-webkit-autofill {
|
|
-webkit-box-shadow: 0 0 0px 1000px transparent inset !important;//关于解决输入框背景颜色
|
|
-webkit-text-fill-color: rgba(255,255,255,1)!important;//关于接输入框文字颜色
|
|
}
|
|
.clearBox::after{
|
|
display: block;
|
|
content: "";
|
|
clear: both;
|
|
}
|
|
.inp_div{
|
|
width: 60%;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
*{ 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: -92px;
|
|
top: 89px;
|
|
/* transform: translate(-50%,-50%); */
|
|
width: 64%;
|
|
box-sizing: border-box;
|
|
/* padding: 50px 40px;*/
|
|
}
|
|
.tilte{ font-size: 30px; color: #0070ff; text-align: center; margin-bottom: 50px;}
|
|
.inp{ margin-right: 12px;width: 36%;float: left;margin-bottom: 20px; border-radius: 3px;}
|
|
.inp input{
|
|
width: 100%;
|
|
padding: 15px 20px;
|
|
box-sizing: border-box;
|
|
border: 0;
|
|
outline:0;
|
|
border-radius: 8px;
|
|
background: rgba(0,0,0,.1)!important;
|
|
}
|
|
.flex input{ width: auto; }
|
|
.denglu{ background: url(img/denglu.jpg); width: 24%;
|
|
float: left;
|
|
height: 45px;
|
|
text-align: center;
|
|
line-height: 45px;
|
|
color: #FFFFFF;
|
|
margin: 0 auto;
|
|
cursor: pointer;
|
|
border-radius: 8px;}
|
|
.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>
|