python 京東登錄網(wǎng)頁界面

codebg.png

bg.png
bg1.png
bg2.png
clear.png
l-icon.png
logo.png
password_icon.png
pwd-icons-new.png
pygame.png
q-icon.png
qq.png
right.png
warning.png
weixin.png
xx.png

index-CSS

/*==============(通用)================*/
*{
    /*消除默認的margin*/
    margin: 0;   
    /*消除默認padding*/
    padding: 0;
    /*讓所有標簽的子標簽都相對自己定位*/
    position: relative;  
}


/*===============頂部=================*/
#header{
    height: 130px;
    /*background-color: seagreen;*/
}
/*====頂部的頂部====*/
#header #top{
    height: 80px;
    background-color: white;
}
#header #top div{
    width: 292px;
    height: 60px;
    
    /*相對定位-會讓標簽脫流*/
    position: absolute;
    left: 188px;
    
    /*垂直居中*/
    top: 50%;
    margin-top: -30px;
    line-height: 60px;  
    
}
#header #top #survey{
    /*布局*/
    position: absolute;
    right: 187px;
    bottom: 10px;
    
    /*設置字體*/
    color: rgb(180, 180, 180);
    font-size: 12px;
    /*去掉下劃線*/
    text-decoration: none;
    
    /*添加背景圖
     * background:url(圖片地址)  repeat/no-repeat x y 背景顏色
     * x,y: x坐標和y坐標對應的值叭爱,除了可以設置數(shù)字值以外,和可以設置center,讓背景圖在x方向和y方向居中
     */
    padding-left: 23px;
    background:url(../img/q-icon.png) no-repeat 0 center white;
}
#header #top #survey:hover{
    color: red;
    text-decoration: underline;
}




/*====頂部的底部====*/
#header #bottom{
    height: 50px;
    background-color: rgb(255, 246, 236);
}
#header #bottom p{
    /*垂直方向居中*/
    height: 50px;
    line-height: 50px;
    
    /*水平方向居中*/
    text-align: center;
    
    /*設置字體*/
    color: rgb(180, 180, 180);
    font-size: 12px;
}
#header #bottom p img{
    /*垂直居中*/
    height: 25px;
    position: absolute;
    top: 50%;
    margin-top: -12px;
    line-height: 25px;
}
#header #bottom p a{
    color: rgb(30, 30, 30);
    /*去掉下劃線*/
    text-decoration: none;
}
#header #bottom p a:hover{
    /*添加下劃線*/
    text-decoration: underline;
}


/*===============中間=================*/
#content{
    height: 470px;
    /*<!--77,157,254-->*/
    background: url(../img/bg2.png) no-repeat 15% center rgb(77, 157, 254);
    
}
/*====登錄界面=======*/
#content #login_page{
    width: 350px;
    height: 400px;
    background-color: white;
    
    /*定位*/
    position: absolute;
    right:200px;
    top: 15px;
}
/*--提示塊--*/
#content #login_page #div1{
    height: 40px;
    background-color: rgb(255, 246,236);
}
#content #login_page #div1 img{
    height: 16px;
    position: absolute;
    top: 50%;
    margin-top: -8px;
    line-height: 16px;
}
#content #login_page #div1 p{
    /*垂直方向居中*/
    height: 40px;
    line-height: 40px;
    
    /*水平方向居中*/
    text-align: center;
    
    font-size: 12px;
    color: rgb(180, 180, 180);
}


/*--選中登錄方式--*/
#content #login_page #div2{
    height: 60px;
    /*background-color: chartreuse;*/
    
    color: rgba(220, 220, 220, 0.6);
    /*設置字體粗細:取值范圍是100-900*/
    font-weight: 100;
}
#content #login_page #div2 button{
    width: 48%;
    height: 100%;
    
    border: 0;
    
    font-size: 18px;
    color: rgb(60, 60, 60);
}
/*設置按鈕成為焦點的狀態(tài)*/
#content #login_page #div2 button:focus{
    color: red;
    /*按鈕成為焦點默認的邊框效果是outline*/
    outline: 0;
}

/*--信息收集塊--*/
#content #login_page #div3{
    height: 250px;
    /*設置邊框*/
    border-top: solid rgba(220, 220, 220, 0.6) 1px;
    border-bottom: solid rgba(220, 220, 220, 0.6) 1px;

}
#content #login_page #div3 div{
    width: 300px;
    height: 40px;
    
    margin-left: 25px;
    margin-top: 23px;
    
    border: solid rgb(170, 170, 170) 1px;
}
#content #login_page #div3 #username{
    margin-top: 35px;
}
/*圖片*/
#content #login_page #div3 div img{
    width: 40px;
    height: 40px;
    float: left;
    
    border-right: solid rgb(170, 170, 170) 1px;
}
/*輸入框*/
#content #login_page #div3 div input{
    height: 40px;
    width: 245px;
    
    border: 0;
    float: left;
    
    padding-left: 10px;
    
    font-size: 14px;
}
#content #login_page #div3 div input:focus{
    outline: 0;
}

/*忘記密碼*/
#content #login_page #div3 a{
    position: absolute;
    right: 25px;
    margin-top: 20px;
    
    color: rgb(89, 89, 89);
    font-size: 12px;
    text-decoration: none;
}
#content #login_page #div3 a:hover{
    color: red;
    text-decoration: underline;
}

/*登錄按鈕*/
#content #login_page #div3 button{
    width: 300px;
    margin-left: 25px;
    height: 35px;
    
    position: absolute;
    bottom: 20px;
    
    background-color: rgb(219, 34, 46);
    border: none;
    
    color: white;
    font-size: 20px;
}


#content #login_page #div4{
    /*垂直方向居中*/
    height: 50px;
    line-height: 50px;
    
    font-size: 10px;
    color: rgba(220,220,220,0.8);
    
    
}
#content #login_page #div4 #a1{
    margin-left: 25px;
    margin-right: 15px;
    
    color: rgb(89,89,89);
    font-size: 12px;
    text-decoration: none;
    
    padding-left: 25px;
    background: url(../img/qq.png) no-repeat 0 center white;
    
}
#content #login_page #div4 #a2{
    margin-left: 5px;
    
    color: rgb(89,89,89);
    font-size: 12px;
    text-decoration: none;
    
    padding-left: 25px;
    background: url(../img/weixin.png) no-repeat 0 center white;
}

#content #login_page #div4 #a3{
    position: absolute;
    right: 25px;
    
    color: rgb(165,19,23);
    font-size: 12px;
    text-decoration: none;
    
    padding-left: 25px;
    background: url(../img/right.png) no-repeat 0 center rgba(0,0,0,0);
}

#content #login_page #div4 #a1:hover{
    color: red;
    text-decoration: underline;
}
#content #login_page #div4 #a2:hover{
    color: red;
    text-decoration: underline;
}
#content #login_page #div4 #a3:hover{
    text-decoration: underline;
}



/*===============底部=================*/
#footer{
    height: 105px;
}
#footer div{
    height: 50px;
    
    /*水平居中*/
    text-align: center;
    
    /*垂直居中*/
    line-height: 50px;
    
    font-size: 12px;
    color: rgb(89, 89, 89);
    
}

#footer div a{
    margin-left: 10px;
    margin-right: 10px;
    
    color: rgb(89, 89, 89);
    text-decoration: none;
}
#footer div a:hover{
    color: red;
    text-decoration: underline;
}
#footer p{
    color: rgb(89, 89, 89);
    font-size: 12px;
    
    /*水平居中*/
    text-align: center;
}

index-html

<!--index.html是網(wǎng)站首頁對應html文件-->

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <!--設置網(wǎng)頁標題-->
        <title>京東-歡迎登錄</title>
        <!--設置網(wǎng)頁圖標-->
        <link rel="icon" type="image/ico" href="img/jd_logo.ico"/>
        <!--導入樣式表-->
        <link rel="stylesheet" type="text/css" href="css/index.css"/>
    </head>
    
    <body>
        
        <!--===================頂部====================-->
        <div id="header">
            <!--====頂部的頂部====-->
            <div id="top">
                <div>
                    <img src="img/logo.png"/>
                    <img src="img/l-icon.png"/>
                </div>
                <a id="survey" target="_blank" >登錄頁面,調查問卷</a>
            </div>
            <!--====頂部的底部====-->
            <div id="bottom">
                <p><img src="img/warning.png"/>&nbsp;&emsp;&emsp;依據(jù)《網(wǎng)絡安全法》虚婿,為保障您的賬戶安全和正常使用屋剑,請盡快完成手機號驗證! 新版<a target="_blank" >《京東隱私政策》</a>已上線震叮,將更有利于保護您的個人隱私。</p>
            </div>
            
        </div>
        <!--===================中間=====================-->
        <div id="content">
            <!--登錄框-->
            <div id="login_page">
                <!--提示塊-->
                <div id="div1">
                    <p><img src="img/xx.png"/>&emsp;&emsp;京東不會以任何理由要求您轉賬匯款鳍鸵,謹防詐騙苇瓣。</p>
                </div>
                <!--按鈕塊-->
                <div id="div2">
                    <button id="btn1">掃碼登錄</button>|
                    <button id="btn2">賬號登錄</button>
                </div>
                <!--信息收集塊-->
                <div id="div3">
                    <!--用戶名-->
                    <div id="username">
                        <img src="img/pygame.png"/>
                        <input type="text" name="uersname" placeholder="郵箱/用戶名/已驗證手機" />
                    </div>
                    <!--密碼-->
                    <div id="password">
                        <img src="img/password_icon.png"/>
                        <input type="password" name="password" placeholder="密碼" />
                    </div>
                    <!--忘記密碼-->
                    <a >忘記密碼</a>
                    <!--登錄-->
                    <button>登&emsp;錄</button>
                </div>
                <!--注冊和第三方登錄-->
                <div id="div4">
                    <a id="a1" class="aa" href="">QQ</a>|
                    <a id="a2" class="aa" href="">微信</a>
                    <a id="a3" href="">立即注冊</a>
                </div>
            </div>
            
        </div>
        <!--===================底部=====================-->
        <div id="footer">
            <div>
                <a href="">關于我們</a>|
                <a href="">聯(lián)系我們</a>|
                <a href="">人才招聘</a>|
                <a href="">商家入駐</a>|
                <a href="">廣告服務</a>|
                <a href="">手機京東</a>|
                <a href="">友情鏈接</a>|
                <a href="">銷售聯(lián)盟</a>|
                <a href="">京東社區(qū)</a>|
                <a href="">京東公益</a>|
                <a href="">English Site</a>
            </div>
            <p>Copyright ? 2004-2018  京東JD.com 版權所有</p>
        </div>
        
    </body>
</html>
QQ圖片20181101214107.jpg
最后編輯于
?著作權歸作者所有,轉載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市偿乖,隨后出現(xiàn)的幾起案子击罪,更是在濱河造成了極大的恐慌哲嘲,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,427評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件媳禁,死亡現(xiàn)場離奇詭異眠副,居然都是意外死亡,警方通過查閱死者的電腦和手機竣稽,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,551評論 3 395
  • 文/潘曉璐 我一進店門囱怕,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人毫别,你說我怎么就攤上這事娃弓。” “怎么了岛宦?”我有些...
    開封第一講書人閱讀 165,747評論 0 356
  • 文/不壞的土叔 我叫張陵台丛,是天一觀的道長。 經(jīng)常有香客問我砾肺,道長挽霉,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,939評論 1 295
  • 正文 為了忘掉前任变汪,我火速辦了婚禮炼吴,結果婚禮上,老公的妹妹穿的比我還像新娘疫衩。我一直安慰自己硅蹦,他們只是感情好,可當我...
    茶點故事閱讀 67,955評論 6 392
  • 文/花漫 我一把揭開白布闷煤。 她就那樣靜靜地躺著童芹,像睡著了一般。 火紅的嫁衣襯著肌膚如雪鲤拿。 梳的紋絲不亂的頭發(fā)上假褪,一...
    開封第一講書人閱讀 51,737評論 1 305
  • 那天,我揣著相機與錄音近顷,去河邊找鬼生音。 笑死,一個胖子當著我的面吹牛窒升,可吹牛的內(nèi)容都是我干的缀遍。 我是一名探鬼主播,決...
    沈念sama閱讀 40,448評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼饱须,長吁一口氣:“原來是場噩夢啊……” “哼域醇!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 39,352評論 0 276
  • 序言:老撾萬榮一對情侶失蹤譬挚,失蹤者是張志新(化名)和其女友劉穎锅铅,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體减宣,經(jīng)...
    沈念sama閱讀 45,834評論 1 317
  • 正文 獨居荒郊野嶺守林人離奇死亡盐须,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,992評論 3 338
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了漆腌。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片丰歌。...
    茶點故事閱讀 40,133評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖屉凯,靈堂內(nèi)的尸體忽然破棺而出立帖,到底是詐尸還是另有隱情,我是刑警寧澤悠砚,帶...
    沈念sama閱讀 35,815評論 5 346
  • 正文 年R本政府宣布晓勇,位于F島的核電站,受9級特大地震影響灌旧,放射性物質發(fā)生泄漏绑咱。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,477評論 3 331
  • 文/蒙蒙 一枢泰、第九天 我趴在偏房一處隱蔽的房頂上張望描融。 院中可真熱鬧,春花似錦衡蚂、人聲如沸窿克。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,022評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽年叮。三九已至,卻和暖如春玻募,著一層夾襖步出監(jiān)牢的瞬間只损,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,147評論 1 272
  • 我被黑心中介騙來泰國打工七咧, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留跃惫,地道東北人。 一個月前我還...
    沈念sama閱讀 48,398評論 3 373
  • 正文 我出身青樓艾栋,卻偏偏與公主長得像爆存,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子裹粤,可洞房花燭夜當晚...
    茶點故事閱讀 45,077評論 2 355

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