2018-11-01day04-登录页面



    
        
        
        京东-欢迎登录
        
        
        
        
    
    
    
        
        
        
        
        

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

|

忘记密码

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: 150px;
    
    /*垂直居中*/
    top: 50%;
    margin-top: -30px;
    line-height: 60px;  
    
}
#header #top #survey{
    /*布局*/
    position: absolute;
    right: 180px;
    bottom: 10px;
    
    /*设置字体*/
    color: rgb(180, 180, 180);
    font-size: 13px;
    /*去掉下划线*/
    text-decoration: none;
    
    /*添加背景图  要加三个值
     * background:url(图片地址) 
     * repeat/no-repeat x y
     * x,y左边对应的值,除了可以设置具体数字值外还可以设置center让背景图在x和y方向居中
     * 背景颜色
     * */
    padding-left: 22px ;
    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 a{
    height: 50px;
    text-decoration: none;
    color: rgb(30,30,30);
    
}
#header #bottom p a:hover{
    /*color: red;*/
    text-decoration: underline;
}
#header #bottom p{
    /*垂直方向居中*/
    height: 50px;
    line-height: 50px;
    /*水平居中*/
    text-align: center;
    /*设置字体*/
    font-size: 10px;
    color: rgb(150,150,150);    
    
}
#header #bottom p img{
    /*垂直居中*/
    height: 25px;
    position: absolute;
    top: 50%;
    margin: -12px;
    line-height: 25px;
}

/*===============中间=================*/
#content{
    height: 470px;
    /*background-color: sandybrown;*/
    background: url(../img/bg2.png) no-repeat 100px center rgb(77,157,254);
    
        
}

/*===============登录============*/
#content #login_page{
    width: 350px;
    height: 400px;
    background-color: white;
    
    /*定位*/
    position: absolute;
    right: 130px;
    top: 30px;  
}
/*=============提示块========*/
#content #login_page #div1{
    height: 40px;
    background-color: rgb(255,246,236);
}
#content #login_page #div1 p{
    /*float: left;*/
    font-size: 12px;
    height: 40px;
    /*font: "微软雅黑";*/
    line-height: 40px;
    text-align: center;
    color: rgb(150,150,150);
    
    
}

#content #login_page #div1 img{
    /*float: left;*/
    height: 16px;
    position: absolute;
    left: 30px;
    top: 50%;
    margin: -8px;
    /*line-height:2 5px;*/
}



/*============登录方式==========*/

#content #login_page #div2{
    height: 60px;
    /*background-color: aquamarine;*/
    
    color: rgba(220,220,220,0.5);
    /*字体粗细;取值范围100-900*/
    font-weight: 100;
}

#content #login_page #div2 button{
    width: 48%;
    height: 100%;
    
    border: 0;
    background-color: white;
    font-size: 18px;
    color: rgb(50,50,50);
    
    
    
}
/*设置按钮成为焦点*/
#content #login_page #div2 button:focus{
    color: red;
    
    /*按钮成为焦点的边框效果*/
    outline: 0; 
    
}


/*===============信息收集=========*/

#content #login_page #div3{
    height: 250px;
    /*设置边框*/
    border-bottom: solid rgba(220,220,220,0.6) 1px;

    border-top: solid rgba(220,220,220,0.6) 1px;
    
}
#content #login_page #div3 div{
    /*background-color: antiquewhite;*/
    width: 300px;
    height: 40px;
    
    margin-left: 25px;
    margin-top: 20px;
    border: solid rgb(170,170,170) 1px;
    
}

#content #login_page #div3 #username{
    margin-top: 25px;
}
/*图片*/
#content #login_page #div3 img{
    width: 40px;
    height: 40px;
    float:left;
    
    border-right:solid rgb(170,170,170) 1px;
}
/*输入框*/
#content #login_page #div3 div input{
    width:240px;
    height: 40px;
    float: left;
    padding-left: 10px;
    padding-top: 0;
    border:0;
    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(120,120,120);
    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: 0;
    color: white;
    font-size: 20px;
    
}

/*================第三方登录=======================*/
#content #login_page #div4{
    height: 50px;
    /*background-color:chartreuse;*/
    line-height: 50px;  
    
    font-size: 10px;
    color: rgba(140,140,140,0.9);

    
}
#content #login_page #div4 #a1{
    /*margin-top:5px ;*/
    margin-left: 25px;
    margin-right: 15px;
    
    color: rgb(89,89,89);
    font-size: 12px;
    text-decoration: none;
    
    background: url(../img/qq.png) no-repeat 0 center white;
    padding-left: 25px;
    padding-top: 3px;
    
    
    
}

#content #login_page #div4 #a2{
    margin-left: 5px;
    color: rgb(89,89,89);
    font-size: 12px;
    text-decoration: none;
    background: url(../img/weixin.png) no-repeat 0 center white;
    padding-left: 25px;
    padding-top: 3px ;
}


#content #login_page #div4 #a3{
    position: absolute;
    right: 25px;
    
    color: rgb(165,10,23);
    font-size: 12px;
    text-decoration: none;
    background: url(../img/right.png) no-repeat 0 center rgba(0,0,0,0);
    padding-left: 25px;
}
#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{
    
    /*color: red;*/
    text-decoration: underline;
    
}


/*===============底部=================*/
#footer{
    height: 105px;
    /*background-color: gold;*/
    color: rgba(0,0,0,0.6);
}

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


/*===========(通用)==============*/

你可能感兴趣的:(2018-11-01day04-登录页面)