body{
margin: 0;
}
.head{
background-color: #222;
}
.head ul{
padding-left: 0;
}
.head ul li{
display: inline-block;
}
.head a{
text-decoration: none;
color: white;
display: block;
}
.head .line1{
background-color: #000;
display: flex;
/* flex布局 */
justify-content: space-between;
align-items: center;
}
.head .line1 .log{
margin-left: 130px;
}
.head .line1 ul{
margin-right: 130px;
}
.head .line1 li{
width: 120px;
text-align: center;
border-right: 1px solid #999999;
}
.head .line1 li a{
color: #999999;
}
.head .line1 li:last-child{
border: none;
}
.head .line2{
width: 1400px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.head .line2 div{
position: relative;
}
.head .line2 .search{
display: inline-block;
width: 435px;
height: 40px;
border: none;
outline: none;
background: url(../img/icon/search_icon.png);
background-position: 0 -42px;
color: #999999;
font-size: 12px;
padding-left: 16px;
}
.head .line2 .btn{
display: inline-block;
width: 32px;
height: 40px;
background-color: white;
position: absolute;
background: url(../img/icon/search_icon.png);
background-position: -454px 0px;
right: 10px;
}
.head .line2 .search:focus{
background-position: 0 2px;
}
.head .line2 .search:focus + .btn{
background-position: -456px -42px;
}
.head .line2 li{
margin: 0 15px;
}
.head .line2 li a{
display: inline-block;
}
.head .line2 li img{
display: inline-block;
height: 20px;
width: 20px;
vertical-align: middle;
margin-right: 10px;
}
.head hr{
border: none;
border-bottom: 1px solid #999;
margin-bottom: 0;
}
.head .line3{
width: 1000px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.head .line3 .title {
color: white;
display: block;
background-color: #000000;
line-height: 53px;
width: 120px;
text-align: center;
}
.head .line3 ul{
margin: 0;
}
.head .line3 li{
width: 90px;
text-align: center;
line-height: 53px;
}
.head .line3 li a:hover{
color: #DE4767;
border-bottom: 3px solid #DE4767;
line-height: 47px;
}
.head .line3 .active {
color: #DE4767;
border-bottom: 3px solid #DE4767;
line-height: 47px;
}
相关文章
- 01-11head.css