html頁面
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>京東-歡迎登錄</title>
<!--設(shè)置網(wǎng)頁圖標(biāo)
rel:icon(設(shè)置圖標(biāo))
type:文件類型 image/x-ico(X代表未知)
href:鏈接地址
-->
<link rel="icon" type="image/x-ico" href="img/bb.ico"/>
<link rel="stylesheet" type="text/css" href="css/jingd.css"/>
</head>
<body>
<!--=====1将鸵、頂部=====-->
<div id="header">
<div class="h-top">
<!--圖標(biāo)部分-->
<div class="icon">
<img src="img/logo.png"/>
<img src="img/l-icon.png"/>
</div>
<!--問卷-->
<a target="_blank">登錄頁面幕庐,調(diào)查問卷</a>
</div>
<!--下面的文字-->
<div class="h-bottom">
<div id="">
<img src="img/warning.png"/>
<p>依據(jù)《網(wǎng)絡(luò)安全法》剩蟀,為保障您的賬戶安全和正常使用,請盡快完成手機號驗證! 新版<a >《京東隱私政策》</a>已上線,將更有利于保護您的個人隱私。</p>
</div>
</div>
</div>
<!--=====2、中間內(nèi)容=====-->
<div id="content">
<div class="input_div">
<div class="info-top">
<div class="top-top">
<img src="img/warning.png"/>
<p>京東不會以任何理由要求您轉(zhuǎn)賬匯款胞谈,謹(jǐn)防詐騙。</p>
</div>
<div class="top-bottom">
<button >掃碼登錄</button>|
<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 >忘記密碼</a>
<button id="log">登 錄</button>
</div>
<div class="info-bottom">
<!--<ul>
<li class="qq"><a href="">QQ</a></li>
<li class="wx"><a href="">微信</a></li>
</ul>-->
<div class="login">
<img src="img/qq.png"/> <a href="">QQ</a> |
<img src="img/weixin.png"/><a href="">微信</a>
</div>
<div class="logon">
<img src="img/right.png"/>
<p ><a ><font color="red">立即注冊</font></a></p>
</div>
</div>
</div>
</div>
<!--=====3憨愉、底部=====-->
<div id="footer">
<div class="other">
<a class="about">關(guān)于我們</a> |
<a class="call">聯(lián)系我們</a> |
<a class="people">人才招聘</a> |
<a class="peo">商家入駐</a> |
<a class="tall">廣告服務(wù)</a> |
<a class="phone">手機京東</a> |
<a class="friend">友情鏈接</a> |
<a class="shop">銷售聯(lián)盟</a> |
<a class="club">京東社區(qū)</a> |
<a class="love">京東公益</a> |
<a class="english">English Site</a>
</div>
<div class="versions">
<span>Copyright ? 2004-2018 京東JD.com 版權(quán)所有</span>
</div>
</div>
</body>
</html>
#css
/*=====0烦绳、通用=====*/
*{
margin: 0;
padding: 0;
position: relative;
}
a{
text-decoration: none;
}
/*=====1、header=====*/
#header{
width: 100%;
height: 150px;
background-color: white;
}
#header .h-top{
width: 100%;
height: 100px;
}
#header .h-top .icon{
height: 60px;
position: absolute;
/*垂直居中*/
left: 150px;
top: 50%;
line-height: 60px;
margin: -30px 0 0;
}
#header .h-top a{
/*布局*/
position: absolute;
right: 40px;
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: 50px;
background-color: rgb(255,248,240);
text-align: center;
}
#header .h-bottom div,.top-top{
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{
text-align: center;
height: 50px;
line-height: 50px;
font-size: 12px;
color: rgb(153,153,153);
background: url(../img/warning.png) no-repeat 230px center;
}*/
#header .h-bottom p a{
color: rgb(40,40,40);
}
#header .h-bottom p a:hover{
text-decoration: underline;
}
/*=====2配紫、content=====*/
#content{
width: 100%;
height: 520px;
background: url(../img/ba.png) no-repeat 20% center;
background-color: rgb(11,142,212);
}
#content .input_div{
width: 344px;
height: 438px;
background-color: wheat;
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{
background-color: white;
height: 55px;
position: absolute;
width: 100%;
top: 45px;
/*設(shè)置中間豎線的顏色*/
color: rgb(200,200,200);
border-bottom:1px solid rgb(200,200,200);
}
#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;
/*按鈕和輸入框成為焦點后默認(rèn)的邊框径密,是outline*/
outline: none;
}
#content .input_div .info-middle{
height: 288px;
background-color: white;
border-top: 1px solid rgb(200,200,200);
border-bottom: 1px solid rgb(200,200,200);
}
/*用戶名和密碼*/
#content .input_div .info-middle .username,#content .input_div .info-middle .password{
background-color: white;
width: auto;
height: 50px;
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:1px solid rgb(180,180,180)
}
#content .input_div .info-middle input{
border: 0;
float: left;
height: 100%;
width: auto;
padding-left:10px ;
}
#content .input_div .info-middle input:focus{
outline: none;
}
/*忘記密碼*/
#content .input_div .info-middle a{
position: absolute;
top: 180px;
right: 20px;
font-size: 12px;
color: rgb(220,220,220);
}
#content .input_div .info-middle a:hover,.about:hover,.call:hover,.club:hover,.english:hover,.friend:hover,.love:hover,.peo:hover,.people:hover,.phone:hover,.shop:hover,.tall:hover{
color: red;
text-decoration: underline;
}
#content .info-middle #log{
background-color: red;
font-size: 20px;
letter-spacing: 23px;
height: 55px;
width: 89%;
position: absolute;
left: 20px;
right: 20px;
bottom: 30px;
}
#content .info-middle #log:focus{
color: yellow;
outline: none;
}
#content .input_div .info-bottom{
height: 50px;
background-color: white;
/*text-align: center;*/
}
/*
* 用列表調(diào)了半天感覺效果很勉強
* #content .input_div .info-bottom ul{
float: left;
list-style-position: initial;
list-style-type: circle;
}
#content .input_div .info-bottom .qq{
list-style-image: url(../img/qq.png);
position: absolute;
left: 30px;
top: 10px;
}
#content .input_div .info-bottom .wx{
list-style-image: url(../img/weixin.png);
position: absolute;
left: 100px;
top: 10px;
}*/
/*設(shè)置注冊按鈕*/
#content .input_div .info-bottom div {
top: 8px;
/*left: 111px;*/
display: inline;
}
#content .input_div .info-bottom .login{
position: absolute;
left: 12px;
}
#content .input_div .info-bottom .logon{
/*position: absolute;*/
left: 233px;
}
#content .input_div .info-bottom div p {
color: red;
display: inline;
}
#content .input_div .info-bottom div p:hover{
color: red;
text-decoration: underline;
}
#content .input_div .info-bottom div img{
top:6px
}
/*=====3、footer=====*/
#footer{
width: 100%;
height: 111px;
background-color: white;
color: rgb(153,153,153);
font-size: 12px;
text-align: center;
top: 5px;
}
#footer .versions{
top: 5px;
}
#footer .other a{
font-size: 12px;
color: rgb(220,220,220);
}
QQ截圖20190515195059.png