<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>京東-歡迎登陸</title>
<link rel="icon" type="image/ico" href="img/jd_logo.ico"/>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
</style>
<!-- ===========頂部樣式表============= -->
<link rel="stylesheet" type="text/css" href="css/top.css"/>
<!-- ===========中部樣式表============= -->
<link rel="stylesheet" type="text/css" href="css/middle.css"/>
<!-- ===========底部樣式表============= -->
<link rel="stylesheet" type="text/css" href="css/bottom.css"/>
</head>
<body>
<!-- ==========網(wǎng)頁頂部========== -->
<div id="top">
<div id="icon">
<!-- 圖標(biāo)圖片 -->
<div id="img">
<a href="">
<img src="img/logo.jpg" >
</a>
<img src="img/l-icon.png" >
</div>
<div id="question">
<a href="">登錄頁面,調(diào)查問卷</a>
</div>
</div>
<div id="privacy">
<p><img src="img/xx.png" >  依據(jù)《網(wǎng)絡(luò)安全法》努潘,為保障您的賬戶安全和正常使用,請盡快完成手機(jī)號驗證! 新版<a target="_blank" >《京東隱私政策》</a>已上線萄唇,將更有利于保護(hù)您的個人隱私。</p>
</div>
</div>
<!-- ==========網(wǎng)頁中間========== -->
<div id="middle">
<img src="img/bgimg.png" id="bigimg">
<div id="login-box">
<div id="box1">
<div id="warning">
<img src="img/xx.png" >
<font>京東不會以任何理由要求您轉(zhuǎn)賬匯款,謹(jǐn)防詐騙。</font>
</div>
<div id="choice">
<button>掃碼登錄</button>|
<button>賬號登錄</button>
</div>
</div>
<!-- 賬號密碼登錄框 -->
<div id="box2">
<div id="nusename">
<label for="for1"><img src="img/pygame.png" ></label><input type="text" name="user" id="for1" value="" placeholder="郵箱/用戶名/已驗證手機(jī)"/>
</div>
<div id="password">
<label for="for2"><img src="img/password_icon.png" ></label><input type="password" name="user" id="for2" value="" placeholder="密碼"/>
</div>
<a target="_blank">忘記密碼</a>
<button type="button">登 錄</button>
</div>
<!-- 第三方登錄 -->
<div id="box3">
<a href="" id="qq">QQ</a>
<font>|</font>
<a href="" id="weixin">微信</a>
<a href="" id="register">立即注冊</a>
</div>
</div>
</div>
<!-- ==========網(wǎng)頁底部========== -->
<div id="bottom">
<div>
<a href="">關(guān)于我們<font>|</font></a>
<a href="">聯(lián)系我們<font>|</font></a>
<a href="">人才招聘<font>|</font></a>
<a href="">商家入駐<font>|</font></a>
<a href="">廣告服務(wù)<font>|</font></a>
<a href="">手機(jī)京東<font>|</font></a>
<a href="">友情鏈接<font>|</font></a>
<a href="">銷售聯(lián)盟<font>|</font></a>
<a href="">京東社區(qū)<font>|</font></a>
<a href="">京東公益<font>|</font></a>
<a href="">English Site</a>
</div>
<p>Copyright?2004-2019 京東JD.com 版權(quán)所有</p>
</div>
</body>
</html>
頂部樣式表
#top{
height: 120px;
}
/* 圖標(biāo)頂部 */
#top #icon{
height: 80px;
/* 讓icon的字標(biāo)簽在絕對定位時相對于自己定位 */
position: relative;
}
#top #icon #img{
position: absolute;
left: 185px;
top: 50%;
margin-top: -30px;
}
#top #icon #img a{
text-decoration: none;
}
#top #icon #question a{
position: absolute;
right: 188px;
bottom: 15px;
/* 字體 */
font-size: 12px;
color: rgb(147,147,147);
text-decoration: none;
/* 設(shè)置背景圖
background:地址 是否平鋪 水平方向位置 垂直方向位置 背景顏色
*/
background: url(../img/q-icon.png) no-repeat 0 center rgba(0,0,0,0);
/* 讓文字相對于前面的小圖標(biāo)往后挪 */
padding-left: 22px;
}
#top #icon #question a:hover{
color: #e4393c;
text-decoration: underline;
}
/* 隱私政策 */
#top #privacy{
height: 40px;
background-color: #fff8f0;
}
#top #privacy p{
/* 垂直方向居中(在父標(biāo)簽中)
1.設(shè)置高度和父標(biāo)簽一樣
2.設(shè)置行高和自己的高度一樣 */
line-height: 40px;
height: 40px;
font-size: 12px;
color: rgb(147,147,147);
text-align: center;
position: relative;
}
#top #privacy p img{
position: absolute;
top: 50%;
margin-top: -8px;
}
#top #privacy p a{
color:rgb(50,50,50);
text-decoration: none;
}
#top #privacy p a:hover{
text-decoration: underline;
}
中部樣式表
#middle{
height: 475px;
background:rgb(13,38,78);
}
#middle #bigimg{
margin-left: 700px;
}
#middle #login-box{
width: 350px;
height: 400px;
background-color: white;
float: right;
margin-right: 188px;
margin-top: 10px;
}
/* 第一塊 */
#middle #login-box #box1{
height: 95px;
}
/* 警告 */
#middle #login-box #box1 #warning{
background-color: #fff8f0;
height: 40px;
line-height: 40px;
font-size: 12px;
color: rgb(147,147,147);
/* 水平方向居中 */
text-align: center;
}
#middle #login-box #box1 #warning img{
/* 內(nèi)容垂直方向的布局方式 */
vertical-align: middle;
}
/* 選擇 */
#middle #login-box #box1 #choice{
height: 55px;
color: rgb(235,235,235);
font-size: 17px;
font-weight: 100;
}
#middle #login-box #box1 #choice button{
width: 170px;
height: 100%;
background-color: #ffffff;
border: none;
font-size: 20px;
color: rgb(94,94,94);
}
#middle #login-box #box1 #choice button:focus{
outline-color: snow;
color: rgb(217,46,56);
}
/* 第二塊 */
#middle #login-box #box2{
background-color: #ffffff;
height: 255px;
border-top: 1px solid rgb(150,150,150);
border-bottom: 1px solid rgb(150,150,150);
position: relative;
}
#middle #login-box #box2 div{
width: 310px;
height: 40px;
border: 1px solid rgb(184,184,184);
margin-left: 20px;
margin-top: 30px;
}
#middle #login-box #box2 button{
width: 310px;
margin-left: 20px;
height: 35px;
position:absolute ;
bottom: 30px;
border: 0;
background-color: rgb(214,36,50);
color: white;
font-size: 21px;
}
#middle #login-box #box2 button:focus{
outline: none;
}
#middle #login-box #box2 button:active{
border: 4px solid rgba(35,138,194,0.8);
}
#middle #login-box #box2 a{
position: absolute;
right: 20px;
font-size: 12px;
margin-top: 12px;
text-decoration: none;
color:gray;
}
#middle #login-box #box2 a:hover{
color: rgb(216,48,60);
text-decoration: underline;
}
#middle #login-box #box2 #password{
margin-top: 20px;
}
/* 輸入框下的圖片 */
#middle #login-box #box2 div img{
width: 40px;
height: 40px;
border-right: 1px solid rgb(184,184,184);
}
#middle #login-box #box2 div input{
width: 260px;
height: 100%;
vertical-align: top;
border: none;
font-size: 14px;
}
#middle #login-box #box2 div input:focus{
outline: none;
}
/* 第三塊 */
#middle #login-box #box3{
height: 48px;
line-height: 45px;
}
#middle #login-box #box3 a{
font-size: 13px;
text-decoration: none;
color: rgb(147,147,147);
padding-left: 30px;
}
#middle #login-box #box3 #qq{
float: left;
margin-left: 20px;
background: url(../img/qq.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 #weixin{
float: left;
background: url(../img/weixin.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 font{
float: left;
margin-left: 20px;
margin-right: 20px;
}
#middle #login-box #box3 #register{
float: right;
margin-right: 20px;
font-size: 14px;
color:rgb(155,27,16);
background: url(../img/right.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 #qq,#weixin,#register{
}
底部樣式表
#bottom {
height: 105px;
}
#bottom div{
height: 50px;
line-height: 50px;
text-align: center;
}
#bottom p{
font-size: 12px;
text-align: center;
color: rgb(97,97,97);
}
#bottom a{
font-size: 12px;
text-decoration: none;
color: rgb(97,97,97);
}
#bottom font{
margin-left: 13px;
margin-right: 13px;
}