用到的是css定位较多,js的响应事件一点
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>登录页面</title>
<style>
*{
margin: 0;
padding: 0;
}
a{
text-decoration: none;
color:black;
}
.body{
width: 100%;
height: 800px;
}
.head{
height: 80px;
}
.head01{
width: 100%;
height: 70px;
}
.head01 h1 img{
width: 72px;
height: 45px;
margin-top: 20px;
margin-left: 180px;
}
.head02{
margin-left: 1200px;
margin-top: -50px;
line-height: 18px;
font-size: 12px;
cursor: pointer;
}
.head02 a{
color: #7e7e7e;
}
.head02 img{
width: 16px;
height: 12px;
}
.head02 a:hover{
color: #ff5a00;
}
.zt{
background:url(img/背景.jpg) center center;
height: 600px;
}
.bj{
position: relative;
width: 500px;
height: 400px;
margin-left: 250px;
top: 100px;
cursor: pointer;
}
.zt01{
position: absolute;
width: 350px;
height: 350px;
background-color: #e9e9f2;
top: 240px;
left: 950px;
}
.zt02{
width: 300px;
height: 290px;
margin: auto ;
margin-top: 30px;
}
.zt02-1{
line-height: 5px;
font-size: 18px;
color: #3c3c3c;
margin: 9px 10px 0 0;
font-weight: 900;
padding-top: 10px;
}
.sty{
line-height: 5px;
font-size: 18px;
color: #3c3c3c;
margin: 9px 10px 0 0;
font-weight: 900;
padding-top: 10px;
/*文字的下划线 间距*/
padding-bottom:2px;
border-bottom:2px solid black;
}
.zt04{
width: 42px;
height: 41px;
background-color:#cccccc;
margin-top: 0px;
margin-left: 0px;
border-top:solid 1px white;
border-left:solid 1px white;
position: absolute;
}
.zt04-1 img{
margin-left: 8px;
margin-top: 7px;
width: 24px;
height: 26.4px;
}
.zt05{
margin-top: 25px;
}
.zt05-1{
width: 250px;
height: 43px;
outline:none;
padding-left:50px;
font-size: 14px;
border: 0;
}
.zt06{
width: 42px;
height: 41px;
background-color:#cccccc;
margin-top: 25px;
margin-left: 0px;
border-top:solid 1px white;
border-left:solid 1px white;
position: absolute;
}
.zt06-1 img{
margin-left: 8px;
margin-top: 7px;
width: 24px;
height: 26.4px;
}
.zt-btn{
width: 300px;