
JD.png
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>京东-欢迎登陆</title>
<!--设置网页图标
rel:icon(设置图标)
type:文件类型 image/图片类型(png,ico,x-icon)
-->
<link rel="icon" type="image/ico" href="img/icon.ico"/>
<link rel="stylesheet" type="text/css" href="css/02-jingdong.css"/>
</head>
<body>
<!--=========顶部============ -->
<div id="header">
<div class="h-top">
<!--问卷 -->
<a href="https://surveys.jd.com/index.php?r=survey/index/sid/568245/lang/zh-Hans" target="_blank">登录页面,调查问卷</a>
<!--图标部分 -->
<div class="icon">
<img src="img/logo.png" >
<img src="img/l-icon.png" >
</div>
</div>
<!-- 下面的文字-->
<div class="h-bottom">
<div id="">
<img src="img/warning.png" >
<p>依据《网络安全法》,为保障您的账户安全和正常使用,请尽快完成手机号验证! 新版<a href="https://about.jd.com/privacy/" target="_blank">《京东隐私政策》</a>已上线,将更有利于保护您的个人隐私。</p>
</div>
</div>
</div>
<!-- =========中部=============-->
<div id="content">
<!--登录框 -->
<div class="input_div">
<div class="info-top">
<div class="top-top">
<img src="img/warning.png" >
<p>京东不会以任何理由要求您转账汇款,谨防诈骗。</p>
</div>
<div class="top-bottom">
<button type="button">扫码登录</button>
<button type="button">账号登录</button>
</div>
</div>
<div class="info-middle">
<!-- 输入模块-->
<div class="username">
<img src="img/pygame.png" >
<input type="text" name="username" id="" value="" placeholder="邮箱/用户名/已验证手机号" />
</div>
<div class="password">
<img src="img/password_icon.png" >
<input type="password" name="password" id="" value="" placeholder="密码" />
</div>
<!-- 忘记密码-->
<a href="https://safe.jd.com/findPwd/index.action">忘记密码</a>
<div class="login">
<button>登 录</button>
</div>
</div>
<div class="info-bottom">
<div id="">
<a href="qq" class="qq">QQ</a>
<a href="weixin" class="weixin">微信</a>
</div>
</div>
</div>
</div>
</div>
<!--=========底部============ -->
<div id="footer">
<div class="nav">
<ul>
<li>关于我们</li>
<li>联系我们</li>
<li>人才招聘</li>
<li>商家入驻</li>
<li>广告服务</li>
<li>手机京东</li>
<li>友情链接</li>
<li>京东服务</li>
<li>销售联盟</li>
<li>京东社区</li>
<li>Englis site</li>
</ul>
</div>
<p>Copyright © 2004-2018 京东JD.com 版权所有</p>
</div>
</body>
</html>
*{
margin: 0;
padding: 0;
position: relative;
}
a{
text-decoration:none;
}
/*============1.header======== */
#header{
width: 100%;
height: 120px;
}
#header .h-top{
width: 100%;
height: 80px;
/* background-color: #7FFF00; */
}
#header .h-top .icon{
position: absolute;
left: 142px;
/*垂直居中*/
height: 60px;
top: 50%;
line-height: 60px;
margin: -30px 0 0 0;
}
#header .h-top a{
/*布局 */
position: absolute;
right: 35px;
bottom: 10px;
/* 字体*/
font-size: 12px;
color: rgb(153,153.153);
/* 背景图片*/
background: url(../img/q-icon.png) no-repeat 0 center;
padding-left:20px;
}
#header .h-top a:hover{
color: red;
text-decoration: underline;
}
#header .h-bottom{
width: 100%;
height: 40px;
background-color: rgb(255,248,240);
/* 让内容水平居中 */
text-align: center;
}
#header .h-bottom div, .top-top{
/*background-color: chartreuse;*/
display: inline;
}
/*用图片做标签 */
#header .h-bottom div p, .top-top p{
font-size: 12px;
color: rgb(153,153,153);
display: inline;
}
#header .h-bottom div img, .top-top img{
top: 8px;
}
#header .h-bottom p a{
color: rgb(40,40,40);
}
/*============2.content========== */
#content{
width: 100%;
height: 514px;
background-color: #00FFFF;
background: url(../img/bg.png) no-repeat 20% center;
background-color: rgb(11,142,212);
}
/* 内容中的登录框*/
#content .input_div{
width: 344px;
height: 438px;
background-color: white;
position: absolute;
right: 160px;
top: 10px;
}
/* 登录框的顶部*/
#content .input_div .info-top{
height: 100px;
background-color: rgb(255,248,240);
text-align: center;
}
#content .input_div .info-top .top-bottom{
height: 55px;
width: 100%;
/* 设置竖线颜色*/
color:rgb(200,200,200);
/* 设置分割线*/
border-bottom:1px solid rgb(220,220,220)
}
#content .input_div .info-top .top-bottom button{
width: 160px;
height: 55px;
/* 去掉按钮的边框和背景颜色*/
border: 0;
background-color: rgba(0,0,0,0);
font-size: 20px;
color: rgb(53,53,53);
}
#content .input_div .info-top .top-bottom button:hover{
color: red;
}
#content .input_div .info-top .top-bottom button:focus{
color: red;
/*按钮和输入框成为焦点后默认的边框,是outline*/
outline: none;
}
/*登录框的中部*/
#content .input_div .info-middle{
height: 288px;
background-color: white;
}
/* 用户名和密码输入*/
#content .input_div .info-middle .username,#content .input_div .info-middle .password{
background-color: white;
width: auto;
height: 40px;
position: absolute;
left: 20px;
right:20px;
top:40px;
border: 1px solid rgb(180,180,180);
}
#content .input_div .info-middle .password{
top:110px;
}
#content .input_div .info-middle img{
float:left;
height: 100%;
border-right: 1px solid rgb(180,180,180);
}
#content .input_div .info-middle input{
border: 0;
float: left;
height: 100%;
width: 80%;
padding-left: 15px;
}
/*设置成为焦点的状态的样式*/
#content .input_div .info-middle input:focus{
outline: none;}
/*忘记密码 */
#content .input_div .info-middle a{
/*float: right;*/
position: absolute;
top: 180px;
right: 20px;
font-size: 12px;
color: rgba(180, 180, 180,1);
}
#content .input_div .info-middle a:hover{
color: red;
text-decoration: underline;
}
#content .input_div .info-middle .login {
text-align: center;
position: absolute;
top:200px;
height: 40px;
width:90%;
background-color: red;
left:5%;
}
#content .input_div .info-middle .login button{
background-color: red;
position: absolute;
border: 0;
height: 40px;
line-height:40px ;
top:50%
margin:-20px,0,0,0;
}
/*登录框的底部*/
#content .input_div .info-bottom{
height: 50px;
border-top: 1px solid rgba(220,220,220,0.5);
}
#content .input_div .info-bottom .qq{
background: url(../img/qq.png) no-repeat 0 center;
padding-left:25px;
}
#content .input_div .info-bottom .weixin{
background: url(../img/weixin.png) no-repeat 0 center;
padding-left:25px;
}
#content .input_div .info-bottom div{
position: absolute;
top: 50%;
height: 10px;
line-height: 10px;
margin:-5px,0,0,0 ;
}
#content .input_div .info-bottom .qq,#content .input_div .info-bottom .weixin{
/* position: absolute; */
display: inline;
/* padding-left: 20px; */
}
/* ===========3.footer===========*/
#footer{
width: 100%;
height: 86px;
background-color: white;
}
#footer ul li{
float: left;
padding-left: 20px;
direction: none;
list-style: none;
}
#footer .nav{
position: absolute;
width: 80%;
top:30px;
text-align: center;
/* background-color: #FF0000; */
margin-left:20%;
}
#footer p{
position: absolute;
top:60px ;
height: 20px;
line-height: 20px;
text-align: center;
}
网友评论