day22京東登錄

<!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">
                <!-- 圖標圖片 -->
                <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" >&emsp;&nbsp;&nbsp;依據(jù)《網(wǎng)絡安全法》,為保障您的賬戶安全和正常使用,請盡快完成手機號驗證! 新版<a target="_blank" >《京東隱私政策》</a>已上線,將更有利于保護您的個人隱私。</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)賬匯款,謹防詐騙。</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="郵箱/用戶名/已驗證手機"/>
                    </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">登&emsp;錄</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="">廣告服務<font>|</font></a>
                <a href="">手機京東<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;
}
/* 圖標頂部 */
#top #icon{
    height: 80px;
    /* 讓icon的字標簽在絕對定位時相對于自己定位 */
    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;
    /* 設置背景圖 
        background:地址 是否平鋪 水平方向位置 垂直方向位置 背景顏色
    */
    background: url(../img/q-icon.png) no-repeat 0 center rgba(0,0,0,0);
    /* 讓文字相對于前面的小圖標往后挪 */
    padding-left: 22px;
    
}
#top #icon #question a:hover{
    color: #e4393c;
    text-decoration: underline;
}
/* 隱私政策 */
#top #privacy{
    height: 40px;
    background-color: #fff8f0;
    
}
#top #privacy p{
    /* 垂直方向居中(在父標簽中)
    1.設置高度和父標簽一樣
    2.設置行高和自己的高度一樣 */
    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;
}
1.png
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內(nèi)容

  • 問答題47 /72 常見瀏覽器兼容性問題與解決方案? 參考答案 (1)瀏覽器兼容問題一:不同瀏覽器的標簽默認的外補...
    _Yfling閱讀 13,784評論 1 92
  • CSS 指層疊樣式表(Cascading Style Sheets),是一種用來為結(jié)構(gòu)化文檔(如 HTML 文檔或...
    神齊閱讀 2,114評論 0 14
  • 專業(yè)考題類型管理運行工作負責人一般作業(yè)考題內(nèi)容選項A選項B選項C選項D選項E選項F正確答案 變電單選GYSZ本規(guī)程...
    小白兔去釣魚閱讀 9,049評論 0 13
  • 簡介網(wǎng)絡瀏覽器很可能是使用最廣的軟件。在這篇入門文章中,我將會介紹它們的幕后工作原理。我們會了解到,從您在地址欄輸...
    wengjq閱讀 2,060評論 2 15
  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML標準。 注意:講述HT...
    kismetajun閱讀 27,588評論 1 45