test.html
<head>
<meta charset="utf-8">
<title>京东-欢迎登录</title>
<link rel="icon" href="img/jd_logo.ico" />
<link rel="stylesheet" href="css/test.css"/>
</head>
<body>
<div class="header">
<div class="img">
<a href="https://www.jd.com/">
<img id="i1" src="img/logo.png" />
</a>
<img id="i2" src="img/l-icon.png"/>
</div>
<img id="i3" src="img/q-icon.png"/>
<a id="logo" href="https://wj-dongjian.jd.com/"><h5>登录页面,调查问卷</h5></a>
</div>
<div class="content">
<div class="top">
<img src="img/xx.png" />
<span><h5>依据《网络安全法》,为保障您的账户安全和正常使用,
请尽快完成手机号验证! 新版<a href="#" style="color: black;
text-decoration: none;">《京东隐私政策》</a>已上线,将更有
利于保护您的个人隐私。</h5></span>
</div>
<div class="box">
<div class="box-top">
<img src="img/xx.png" />
<span><h5 style="color: gray;">京东不会以任何理由要求您转账汇款,谨防诈骗。</h5></span>
</div>
<div class="box-nav">
<span id="s1">扫码登陆</span>
<span id="s2">账户登录</span>
</div>
<div class="box-content">
<div>
<img src="img/pygame.png"/>
<input type="text" placeholder="邮箱/账号名/登录手机"/>
</div>
<div>
<img src="img/password_icon.png"/>
<input type="text" placeholder="密码"/>
</div>
<span><a href="https://aq.jd.com/process/findPwd?s=1">忘记密码</a></span>
</div>
<div class="box-button">
<button>登 录</button>
</div>
<div class="box-footer">
<div class="login">
<a href=""><img id="qq" src="img/qq.png"/></a>
<p id="p1"><a href="">QQ </a></p>
<span>|</span>
<a href=""><img id="weixin" src="img/weixin.png"/></a>
<p id="p2"><a href="">微信</a></p>
</div>
<div class="register">
<a id="a1" href=""><img src="img/right.png"/></a>
<a id="a2" href="">立即注册</a>
</div>
</div>
</div>
</div>
<div class="footer">
<div>
<ul style="list-style: none;">
<li><a href="">关于我们</a> | </li>
<li><a href="">联系我们</a> | </li>
<li><a href="">人才招聘</a> | </li>
<li><a href="">商家入驻</a> | </li>
<li><a href="">广告服务</a> | </li>
<li><a href="">手机京东</a> | </li>
<li><a href="">友情链接</a> | </li>
<li><a href="">销售联盟</a> | </li>
<li><a href="">京东社区</a> | </li>
<li><a href="">京东公益</a> | </li>
</ul>
</div>
<p>Copyright © 2004-2022 京东JD.com版权所有</p>
</div>
</body>
test.css
.header{
background-color: rgb(255, 255, 255);
padding: 50px;
position: relative;
}
.img{
width: 400px;
height: 80px;
top: 5px;
left: 180px;
background-color: white;
position: absolute;
}
#i1{
width: 160px;
height: 60px;
bottom: 10px;
left: 10px;
position: absolute;
}
#i2{
width: 100px;
height: 40px;
right: 100px;
top: 30px;
position: absolute;
}
#i3{
width: 20px;
height: 15px;
right: 300px;
position: absolute;
}
#logo{
top: 25px;
right: 180px;
color: gray;
text-decoration: none;
position: absolute;
}
.content{
width: 100%;
height: 450px;
position: relative;
background: url(…/img/bg.png) 0px 0px no-repeat;
}
.box{
width: 370px;
height: 370px;
background-color: white;
top: 60px;
right: 120px;
border-radius: 10px;
position: absolute;
}
.box-top{
width: 370px;
height: 50px;
border-radius: 10px;
position: absolute;
background-color: lightcyan;
}
.box-top img{
width: 1.25rem;
height: 0.9375rem;
left: 30px;
top: 18px;
position: absolute;
}
.box-top span{
left: 60px;
line-height: 10px;
position: absolute;
}
.box-nav{
width: 368px;
height: 70px;
top: 50px;
position: absolute;
border: 1px solid gainsboro;
background-color: white;
}
#s1{
font-size: 18px;
left: 50px;
top: 10px;
position: absolute;
}
#s2{
font-size: 18px;
right: 50px;
top: 10px;
position: absolute;
}
#s1:hover{
color: red;
font-weight: 550;
}
#s2:hover{
color: red;
font-weight: 550;
}
#s2:active{
color: red;
font-weight: 550;
}
.top{
background-color: pink;
position: absolute;
width: 100%;
height: 50px;
}
.top img{
width: 1.25rem;
height: 0.9375rem;
left: 270px;
top: 20px;
position: absolute;
}
.top span{
color: gray;
left: 300px;
top: -3px;
position: absolute;
}
.box-content{
width: 368px;
height: 220px;
top: 100px;
position: absolute;
border: 1px solid gainsboro;
background-color: white;
}
.box-content>div{
width: 328px;
height: 35px;
margin-left: 20px;
margin-top: 25px;
border: 1px solid gainsboro;
}
.box-content input{
width: 250px;
height: 20px;
vertical-align: top;
border: none;
border-left: 1px solid gainsboro;
margin-left: -5px;
padding: 7px;
outline: none;
}
.box-content span>a{
text-decoration: none;
color: black;
font-size: 10px;
right: 20px;
bottom: 60px;
position: absolute;
}
.box-button{
width: 368px;
height: 60px;
top: 260px;
border: none;
position: absolute;
}
button{
bottom: 20px;
left: 55px;
width: 250px;
height: 30px;
background-color: red;
color: white;
font-size: 20px;
border: none;
position: absolute;
}
.box-footer{
width: 368px;
height: 50px;
bottom: 0;
border: 1px solid black;
position: absolute;
}
.login{
width: 160px;
height: 50px;
position: absolute;
}
#qq{
top: 15px;
left: 10px;
position: absolute;
}
#p1>a{
position: absolute;
left: 40px;
top: 15px;
color: black;
text-decoration: none;
}
.login span{
left: 80px;
position: absolute;
}
#p2>a{
position: absolute;
right: 5px;
text-decoration: none;
color: black;
}
#weixin{
top: 15px;
right: 40px;
position: absolute;
}
.register{
width: 100px;
height: 30px;
top: 10px;
right: 20px;
position: absolute;
}
#a1{
top: 5px;
left: 15px;
position: absolute;
}
#a2{
color: red;
text-decoration: none;
/* vertical-align: top;*/
top: 5px;
left: 35px;
position: absolute;
}
ul{
text-align: center;
}
ul>li{
display: inline-block;
}
li a{
text-decoration: none;
color: black;
}
.footer>div{
width: 100%;
height: 60px;
top: 0;
left: 0;
position: absolute;
}
.footer{
background-color: white;
padding: 60px;
position: relative;
}
.footer p{
text-align: center;
color: gray;
font-size: 10px;
}