京东-欢迎登陆
顶部样式表
#top{
height: 120px;
}
/* 图标顶部 */
#top #icon{
height: 80px;
/* 让icon的字标签在绝对定位时相对于自己定位 */
position: relative;
}
#top #icon #img{
position: absolute;
left: 185px;
top: 50%;
margin-top: -30px;
}
#top #icon #img a{
text-decoration: none;
}
#top #icon #question a{
position: absolute;
right: 188px;
bottom: 15px;
/* 字体 */
font-size: 12px;
color: rgb(147,147,147);
text-decoration: none;
/* 设置背景图
background:地址 是否平铺 水平方向位置 垂直方向位置 背景颜色
*/
background: url(../img/q-icon.png) no-repeat 0 center rgba(0,0,0,0);
/* 让文字相对于前面的小图标往后挪 */
padding-left: 22px;
}
#top #icon #question a:hover{
color: #e4393c;
text-decoration: underline;
}
/* 隐私政策 */
#top #privacy{
height: 40px;
background-color: #fff8f0;
}
#top #privacy p{
/* 垂直方向居中(在父标签中)
1.设置高度和父标签一样
2.设置行高和自己的高度一样 */
line-height: 40px;
height: 40px;
font-size: 12px;
color: rgb(147,147,147);
text-align: center;
position: relative;
}
#top #privacy p img{
position: absolute;
top: 50%;
margin-top: -8px;
}
#top #privacy p a{
color:rgb(50,50,50);
text-decoration: none;
}
#top #privacy p a:hover{
text-decoration: underline;
}
中部样式表
#middle{
height: 475px;
background:rgb(13,38,78);
}
#middle #bigimg{
margin-left: 700px;
}
#middle #login-box{
width: 350px;
height: 400px;
background-color: white;
float: right;
margin-right: 188px;
margin-top: 10px;
}
/* 第一块 */
#middle #login-box #box1{
height: 95px;
}
/* 警告 */
#middle #login-box #box1 #warning{
background-color: #fff8f0;
height: 40px;
line-height: 40px;
font-size: 12px;
color: rgb(147,147,147);
/* 水平方向居中 */
text-align: center;
}
#middle #login-box #box1 #warning img{
/* 内容垂直方向的布局方式 */
vertical-align: middle;
}
/* 选择 */
#middle #login-box #box1 #choice{
height: 55px;
color: rgb(235,235,235);
font-size: 17px;
font-weight: 100;
}
#middle #login-box #box1 #choice button{
width: 170px;
height: 100%;
background-color: #ffffff;
border: none;
font-size: 20px;
color: rgb(94,94,94);
}
#middle #login-box #box1 #choice button:focus{
outline-color: snow;
color: rgb(217,46,56);
}
/* 第二块 */
#middle #login-box #box2{
background-color: #ffffff;
height: 255px;
border-top: 1px solid rgb(150,150,150);
border-bottom: 1px solid rgb(150,150,150);
position: relative;
}
#middle #login-box #box2 div{
width: 310px;
height: 40px;
border: 1px solid rgb(184,184,184);
margin-left: 20px;
margin-top: 30px;
}
#middle #login-box #box2 button{
width: 310px;
margin-left: 20px;
height: 35px;
position:absolute ;
bottom: 30px;
border: 0;
background-color: rgb(214,36,50);
color: white;
font-size: 21px;
}
#middle #login-box #box2 button:focus{
outline: none;
}
#middle #login-box #box2 button:active{
border: 4px solid rgba(35,138,194,0.8);
}
#middle #login-box #box2 a{
position: absolute;
right: 20px;
font-size: 12px;
margin-top: 12px;
text-decoration: none;
color:gray;
}
#middle #login-box #box2 a:hover{
color: rgb(216,48,60);
text-decoration: underline;
}
#middle #login-box #box2 #password{
margin-top: 20px;
}
/* 输入框下的图片 */
#middle #login-box #box2 div img{
width: 40px;
height: 40px;
border-right: 1px solid rgb(184,184,184);
}
#middle #login-box #box2 div input{
width: 260px;
height: 100%;
vertical-align: top;
border: none;
font-size: 14px;
}
#middle #login-box #box2 div input:focus{
outline: none;
}
/* 第三块 */
#middle #login-box #box3{
height: 48px;
line-height: 45px;
}
#middle #login-box #box3 a{
font-size: 13px;
text-decoration: none;
color: rgb(147,147,147);
padding-left: 30px;
}
#middle #login-box #box3 #qq{
float: left;
margin-left: 20px;
background: url(../img/qq.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 #weixin{
float: left;
background: url(../img/weixin.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 font{
float: left;
margin-left: 20px;
margin-right: 20px;
}
#middle #login-box #box3 #register{
float: right;
margin-right: 20px;
font-size: 14px;
color:rgb(155,27,16);
background: url(../img/right.png) no-repeat 0 center rgb(255,255,255);
}
#middle #login-box #box3 #qq,#weixin,#register{
}
底部样式表
#bottom {
height: 105px;
}
#bottom div{
height: 50px;
line-height: 50px;
text-align: center;
}
#bottom p{
font-size: 12px;
text-align: center;
color: rgb(97,97,97);
}
#bottom a{
font-size: 12px;
text-decoration: none;
color: rgb(97,97,97);
}
#bottom font{
margin-left: 13px;
margin-right: 13px;
}