Day 4 京东登录界面(作业)

html代码:



    
        
        京东-欢迎登陆
        
        
        
    
    
        
        
        
        
        

京东不会以任何理由要求您转账汇款,谨防诈骗。

|
忘记密码

css:

/*=============0.通用=============*/
*{
    margin: 0;
    padding: 0;
    position: relative;
}

a{
    text-decoration: none;
}


/*=============1.hearer=============*/
#header{
    width: 100%;
    height: 120px;
}

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

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

#header .h-top a{
    /*布局*/
    position: absolute;
    right: 35px;
    bottom: 10px;
    
    /*字体大小*/
    font-size: 14px;
    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: 40px;
    background-color: rgb(255,248,240);
    text-align: center;
}

#header .h-bottom div, .top-top p{
    /*background-color: chartreuse;*/
    
    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: 40px;
    line-height: 40px;
    
    color: rgb(153,153,153);
    font-size: 12px;
    
    background-image: url(../img/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(../img/TIM图片20180816144813.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: rgb(255,248,240);
    
    text-align: center;
}

#content .input_div .info-top .top-bottom{
    height: 55px;
    width: 100%;
    background-color: white;
    
    
    position: absolute;
    bottom: 0px;
    
    /*设置竖线颜色*/
    color: rgb(200,200,200);
    
    /*分割线*/
    border-bottom: 1px solid rgb(200,200,200);
}

#content .input_div .info-top .top-bottom button{
    width: 100px;
    height: 50px;
    
    /*去掉背景颜色和边框*/
    border: 0;
    background-color: rgb(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;
    
    /*按钮和输入框成为焦点后默认的边框,是outline*/
    outline: 0;
}

/*登录框中部*/
#content .input_div .info-mid{
    height: 288px;
    background-color: white;
}

#content .input_div .info-mid .username ,#content .input_div .info-mid .password{
    background-color: white;
    width: auto;
    height: 40px;
    
    position: absolute;
    left: 20px;
    right: 20px;
    top: 40px;
    
    border: 1px solid rgb(80,80,80);
}

#content .input_div .info-mid .password{
    top: 110px;
}

#content .input_div .info-mid img{
    float: left;
    height: 100%;
    border: 1px solid rgba()(80,80,80,0.5);
}

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

/*设置成为焦点的状态*/
#content .input_div .info-mid input:focus{
    outline: none;
}

#content .input_div .info-mid a{
    /*float: right;*/
    
    position: absolute;
    top: 180px;
    right: 20px;
    
    font-size: 12px;
    color: rgb(200,200,200);
}

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

#content .input_div .info-mid button{
    position: absolute;
    bottom: 20px;
    left: 32px;
    width: 80%;
    height: 42px;
    background-color: #FF0000;
    font-family: "微软雅黑";
    font-size: 25px;
    color: white;
    text-align: center;
    border: 0;
}

/*登录框底部*/
#content .input_div .info-bottom{
    float: left;
    height: 50px;
    width: 80%;
    border-top: 1px solid rgba(220,220,220,0.5);
}

#content .input_div .info-bottom .qq , .weixin{
    display: inline;
    /*text-align: center;*/
    font-size: 13px;
}

#content .input_div .info-bottom .qq a:hover , .weixin a:hover{
    color: red;
    text-decoration: underline;
}

#content .input_div .info-bottom .qq img{
    position: relative;
    top: 7px;
}

#content .input_div .info-bottom .weixin img{
    position: relative;
    top: 8px;
}



#content .input_div .info-bottom{
    position: relative;
    top: 7px;
    left: 30px;
    color: rgb(200,200,200);
}

#content .input_div .info-bottom .login{
    position: relative;
    top: -80;
    bottom: 28px;
    left: 180px;
    font-size: 13px;
}

#content .input_div .info-bottom .login a:hover{
    text-decoration: underline;
}

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

/*3.=============3.footer=============*/
#footer{
    position: relative;
    width: 100%;
    height: 86;
    background-color: white;
    text-align: center;
    top: 15px;
}

#footer .other a{
font-size: 13px;
}

#footer .other a:hover{
    color: #FF0000;
    text-decoration: underline;
}

#footer .other p{
    position: relative;
    top: 20px;
    font-size: 13px;
}

效果图:


Day 4 京东登录界面(作业)_第1张图片

你可能感兴趣的:(Day 4 京东登录界面(作业))