August 16-day 26 京东登录页面(补充版)

HTML代码

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>京东-欢迎登录</title>
        <!--设置网页图标
            rel: icon(设置图标)
            type:文件类型 image/x-icon
        -->
        <link rel="icon" type="image/ico" href="images/icon.ico"/>
        <link rel="stylesheet" type="text/css" href="css/jingdong.css"/>
        
    </head>
    <body>
        <!--===============第一部分(顶部)===============-->
        <div id="header">
            <div class="h-top">
                
                <!--图标部分-->
                <div class="icon">
                    <a href="https://www.jd.com/" target="_blank"><img src="images/logo.png"/></a>
                    <img src="images/l-icon.png"/>
                </div>
                
                <a id="d1" href="https://surveys.jd.com/index.php?r=survey/index/sid/568245/lang/zh-Hans" target="_blank">登录页面,调查问卷</a>
                
                
            </div>
            
            <div class="h-bottom">
                <div id="">
                    <img  src="images/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="images/warning.png"/>
                        <p>京东不会以任何理由要求您转账汇款,谨防诈骗。</p>
                    </div>
                    
                    <div class="top-bottom">
                        <button>扫码登录</button>|
                        <button>帐号登录</button>
                    </div>
                    
                </div>
                <!--   鱼肚-->
                <div class="info-middle">
                    <!--===帐号-->
                    <div class="username">
                        <img src="images/pygame.png"/>
                        <input type="text" name="username" value="" placeholder="邮箱/用户/手机号"/>
                    </div>
                    <!--=====密码-->
                    <div class="password">
                        <img src="images/password_icon.png"/>
                        <input type="password" name="password"  value="" placeholder="密码"/>
                    </div>
                    <!--忘记密码-->
                    <a class="mima" href="https://safe.jd.com/findPwd/index.action">忘记密码</a>
                    
                    <!--登录-->
                    <a id="login" href="">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
                </div>
                
                <!--*************鱼尾-->
                <div class="info-bottom">
                    <div class="bottom-left">
                        <img src="images/qq.png"/>
                        <a style="padding-right: 15px ;" href="">QQ</a>|
                        <img style="padding-left: 5px ;" src="images/weixin.png"/>
                        <a href="">微信</a>
                    </div>
                    <div class="bottom-right">
                        <img src="images/right.png"/>
                        <a style="color: red;" href="">立即注册</a>
                    </div>
                </div>
                
            </div>
            
        </div>
        <!--===============第三部分(底部)===============-->
        <div id="footer">
            <div class="footer-up">
                <a href="">关于我们</a>|
                <a href="">联系我们</a>|
                <a href="">人才招聘</a>|
                <a href="">商家入驻</a>|
                <a href="">广告服务</a>|
                <a href="">手机京东</a>|
                <a href="">友情链接</a>|
                <a href="">销售联盟</a>|
                <a href="">京东社区</a>|
                <a href="">京东公益</a>|
                <a href="">English Site</a>
            </div>
            
            <div class="footer-down">
                <p>Copyright © 2004-2018  京东JD.com 版权所有</p>
            </div>
        </div>
        
    </body>
</html>

CSS代码

/*=========0.通用==========*/
*{
    margin: 0;
    padding: 0;
    position: relative;
}
a{
    text-decoration: none;
}

/*=========1.header==========*/

#header{
    width: 100%;
    height: 120px;
    /*background-color: red;*/
}

#header .h-top{
    width: 100%;
    height: 80px;
    /*background-color: hotpink;*/

}

#header .h-top .icon{
    position: absolute;
    left: 142px;
    
    /*垂直居中*/
    height: 60px;
    top: 50%;
    line-height: 60px;
    margin: -30px 0 0 0;
}

#header .h-top #d1{
    /*布局*/
    position: absolute;
    right: 40px;
    bottom: 10px;
    
    /*字体大小*/
    font-size: 12px;
    color: rgb(153,153,153);
    
    /*背景图*/
    background: url(../images/q-icon.png) no-repeat 0 center;
    padding-left: 20px;
}

#header .h-top #d1: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 {
    display: inline;    
}

#header .h-bottom div p {
    font-size: 12px;
    color: rgb(153,153,153);
    display: inline;
}

#header .h-bottom div img {
    top: 8px;
}
/*
 * 
 z#header .h-bottom p{
    text-align: center;
    
    height: 40px;
    line-height: 40px;
    
    color: rgb(153,153,153);
    font-size: 12px;
    /*background: url(../images/warning.png) no-repeat 0 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: 514px;
    
    
    background: url(../images/QQ截图20180816144141.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: aquamarine;*/
    text-align: center;
    position: relative;
    background-color: rgb(255,248,240);
}
/* =============top部分==========*/
#content .input_div .info-top .top-top{
    display: inline;
}

#content .input_div .info-top .top-top p{
    font-size: 12px;
    color: rgb(153,153,153);
    display: inline;
}

#content .input_div .info-top .top-top img{
    top: 8px;
    
}

#content .input_div .info-top .top-bottom{
    width: 100%;
    height: 55px;
    background-color: white;
    
    position: absolute;
    bottom: 0px;
    
    border-bottom:1px solid rgb(220,220,220);
    
}
#content .input_div .info-top .top-bottom button:hover{
    color: red;
}
#content .input_div .info-top .top-bottom button:focus{
    color: red;
    
    /*按钮和输入框成为焦点后默认的边框,是outline*/
    outline: 0;
}
#content .input_div .info-top .top-bottom button{
    width: 165px;
    height: 55px;
    
    /*去掉颜色边框*/
    border: 0;
    background-color: rgba(0,0,0,0);
    
    font-size: 20px;
    color: rgb(53,53,53);
    
}

#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: 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-right: 1px solid rgb(180,180,180);
}

#content .input_div .info-middle input{
    
    border: 0;
    float: left;
    
    height: 100%;
    width: 80%;
    
    padding-left: 5px;
}

#content .input_div .info-middle input:focus{
    outline: none;
}

#content .input_div .info-middle a{
    position: absolute;
    top: 185px;
    right: 20px;
    
    font-size: 12px;
    color: rgba(220,220,220,0.9);
}

#content .input_div .info-middle a:hover{
    color: red;
    text-decoration: underline;
    
}

#content .input_div .info-middle #login{
    height: 33px;
    width: 304px;
    top: 225px;
    color: white;
    background-color: red;
    text-align: center;
    
    font-size: 25px;
    border: 0;
    text-decoration: none;
    font: "微软雅黑";
}

/*=======鱼尾*/
#content .input_div .info-bottom{
    height: 50px;
    background-color: white;
    border-top: 1px solid rgba(180,180,180,0.5);
}

#content .input_div .info-bottom .bottom-left{
    line-height: 50px;
    width: auto;
    font-size: 12px;
    color: rgb(180,180,180);
    left: 20px;
    position: absolute;
}
#content .input_div .info-bottom .bottom-left a:hover{
    color: red;
    text-decoration: underline;
}
#content .input_div .info-bottom .bottom-left img{
    top: 8px;
}

#content .input_div .info-bottom .bottom-right{
    
    float: right;
    right: 20px;
    line-height: 50px;
    
}
#content .input_div .info-bottom .bottom-right img{
    top: 8px;
}

#content .input_div .info-bottom .bottom-right a:hover{
    text-decoration: underline;
    
}
/*=========3.footer==========*/

#footer {
    width: 100%;
    height: 86px;
    background-color: white;
}

#footer .footer-up{
    width: 100%;
    top: 24px;
    text-align: center;
    /*background-color: aqua;*/
}

#footer .footer-up a{
    color: rgb(109,109,109);
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
    
}

#footer .footer-up a:hover{
    color: red;
    text-decoration: underline; 
    
}

#footer .footer-down{
    top: 30px;
    font-size: 12px;
    text-align: center;
/*  background-color: chartreuse;*/
}

显示结果:


页面显示
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 219,753评论 6 508
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,668评论 3 396
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 166,090评论 0 356
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 59,010评论 1 295
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 68,054评论 6 395
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,806评论 1 308
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,484评论 3 420
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,380评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,873评论 1 319
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 38,021评论 3 338
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 40,158评论 1 352
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,838评论 5 346
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,499评论 3 331
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 32,044评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,159评论 1 272
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,449评论 3 374
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 45,136评论 2 356

推荐阅读更多精彩内容