day04-京东登录页面

html页





    
        
        京东-欢迎登录
        
        
        
        
        
        
    
    
        
        
        
        
        

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

|
忘记密码

CSS

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

a{
    text-decoration: none;
}

/*==========1.header================*/
#header{
    width: 100%;
    height: 120px;
    background-color: white;
    text-align: center;
}

#header .h-top{
    display: inline-block;
    width: 1111px;
    height: 80px;
    background-color: white;
}
#header .h-top .icon{
    position: absolute;
    left: 50px;
    height: 60px;
    top: 50%;
    /*line-height: 60px;*/
    margin: -30px 0 0 0;
}
#header .h-top .a2{
    /*布局*/
    position: absolute;
    right: 0px;
    bottom: 10px;
    
    /*字体*/
    font-size: 12px;
    color: rgb(153,153,153);
    
    /*背景图*/
    background-image: url(../img/q-icon.png);
    background-repeat: no-repeat;
    background-position: 0 center;
    padding-left: 22px;
}

#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, #content .centent-1 .input_div .info_top .top-top{
    display: inline;
    /*height: 20px;
    line-height: 20px;*/
    
}
#header .h-bottom div img, #content .centent-1 .input_div .info_top .top-top img{
    top: 9px;
}
#header .h-bottom p, #content .centent-1 .input_div .info_top .top-top p{
    font-size: 12px;
    color: rgb(153,153,153);
    display: inline;
}
/*用背景图时*/
/*#header .h-bottom p{
    
    position: absolute;
    width: 100%;
    height: 40px;
    text-align: center;
    line-height: 40px;
    
    font-size: 12px;
    color: rgb(153,153,153);
    
    background-image: url(../img/warning.png);
    background-repeat: no-repeat;
    background-position: 20% center;
}*/

#header .h-bottom div p a{
    color: rgb(51,51,51);
}
#header .h-bottom div p a:hover{
    text-decoration: underline;
}



/*============2.content=======================*/
#content{
    width: 100%;
    height: 514px;
    /*text-align: center;*/
    background-color: rgb(11,142,212);
}
#content .centent-1{
    width: 1000px;
    height: 514px;
    left: 12%;
    background-image: url(../img/bg3.png);
    background-repeat: no-repeat;
    background-position: 0px center;
    /*background-size: 52% 514px;*/
    background-color: rgb(11,142,212);
    /*background-color: yellow;*/
}
#content .centent-1 .input_div{
    width: 340px;
    height: 440px;
    background-color: white;
    
    position: absolute;
    right: 0px;
    top: 12px;
}
#content .centent-1 .input_div .info_top{
    height: 100px;
    text-align: center;
    background-color: rgb(255,248,240);
}
#content .centent-1 .input_div .info_top .top_bottom{
    height: 55px;
    width: 100%;
    background-color: white;
    text-align: center;
    position: absolute;
    bottom: 0px;
    /*设置竖线颜色*/
    color: rgb(151,151,151);
    /*设置分割线*/
    border-bottom: 1px solid rgba(151,151,151,0.5); 
}
#content .centent-1 .input_div .info_top .top_bottom button{
    width: 160px;
    height: 53px;
    border: 0;
    background-color: white;
    font-size: 21px;
    color: rgb(51,51,51);
}
#content .centent-1 .input_div .info_top .top_bottom button:hover{
    color: red;
}
#content .centent-1 .input_div .info_top .top_bottom button:focus{
    color: red;
    /*按钮和输入框成为焦点后默认的边框,是outline*/
    outline: none;
    
    
}
#content .centent-1 .input_div .info_middle{
    background-color: white;
    height: 280px;
}
#content .centent-1 .input_div .info_middle .username{
    background-color: white;
    width: auto;
    height: 40px;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 25px;
    
    border: 1px solid rgba(189,189,189,0.5);
}
#content .centent-1 .input_div .info_middle .password{
    background-color: white;
    width: auto;
    height: 40px;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 100px;
    
    border: 1px solid rgba(189,189,189,0.5);
}
#content .centent-1 .input_div .info_middle img{
    float: left;
    height: 100%;
    border: 1px solid rgba(189,189,189,0.5);
}
#content .centent-1 .input_div .info_middle input{
    float: left;
    top: 0px;
    border:none;
    height: 100%;
    width: 80%;
    padding-left: 10px;
}
/*设置成为焦点时的状态*/
#content .centent-1 .input_div .info_middle input:focus{
    outline: none;
}
#content .centent-1 .input_div .info_middle a{
    position: absolute;
    top: 170px;
    right: 20px;
    font-size: 12px;
    color: rgb(189,189,189);
}
#content .centent-1 .input_div .info_middle a:hover{
    color: red;
    text-decoration: underline;
}
#content .centent-1 .input_div .info_middle .login{
    background-color: rgb(228,57,60);
    width: auto;
    height: 40px;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 220px;
    text-align: center;
    line-height: 40px;
}
#content .centent-1 .input_div .info_middle .login button{
    border: 0px;
    background-color: rgb(228,57,60);
    font-size: 21px;
    color: white;
}
#content .centent-1 .input_div .info_middle .login .login_bottom{
    position: absolute;
    width: 340px;
    left: -20px;
    bottom: 0px;
    top: 59px;
    /*设置分割线*/
    border-bottom: 1px solid rgba(151,151,151,0.5); 
}


#content .centent-1 .input_div .info_bottom{
    background-color: rgb(252,252,252);
    height: 60px;
}
#content .centent-1 .input_div .info_bottom .bottom_flag{
    display: block;
    position: absolute;
    left: 20px;
    top: 10px;
    text-align: center;
    /*设置竖线颜色*/
    color: rgb(151,151,151);
}
#content .centent-1 .input_div .info_bottom .bottom_flag_a1,#content .centent-1 .input_div .info_bottom .bottom_flag_a2{
    font-size: 13px;
    color: rgb(102,102,102);    
}
#content .centent-1 .input_div .info_bottom a:hover{
    color: red; 
    text-decoration: underline;
}
#content .centent-1 .input_div .info_bottom a img{
    position: relative;
    top: 8px;
}

#content .centent-1 .input_div .info_bottom .bottom_flag .bottom_flag_a3{
    color: red; 
    position: relative;
    top: 2px;
    left: 113px;
    font-size: 16px;
}




/*=============3.footer=================*/
#footer{
    width: 100%;
    height: 86px;
    background-color: white;
    text-align: center;
}
#footer .footer1{
    display: inline-block;
    width: 1111px;
    height: 62px;
    position: relative;
    top: 24px;
    background-color: white;
    /*设置竖线颜色*/
    color: rgb(151,151,151);
}
#footer .footer1 a{
    font-size: 13px;

    color: rgb(102,102,102);
    padding-left: 10px;
    padding-right: 10px;
}
#footer .footer1 a:hover{
    color: red;
    text-decoration: underline;
}

#footer .footer1 p{
    width: 1080px;
    position: relative;
    top: 10px;
    color: rgb(102,102,102);
    font-size: 12px;
}

你可能感兴趣的:(day04-京东登录页面)