.white-nav{
width: 100%;
height: 100px;
background-color: #fff;
position: relative;
}
.logo{
width: 55px;
height: 55px;
background-color: #ff6700;
float: left;
margin-top: 22px;
position: relative;
overflow: hidden;
}
.nav-bar{
width: 875px;
height: 100px;
line-height: 100px;
float: left;
}
.search{
width: 296px;
height: 100px;
float: left;
position: relative;
}
.logo>img{
width: 100%;
height: 100%;
position: absolute;
transition: all 2;
}
.yang{
left: -55px;
}
.guo{
left: 0;
}
.logo:hover>.yang{
left: 0;
}
.logo:hover>.guo{
left: 55px;
}
.yg{
width: 142px;
height: 88px;
}
.nav-bar li{
float: left;
}
.nav-bar>ul>li>a{
color: #333;
padding: 0 10px;
}
.nav-bar>ul>li>a:hover{
color: #fff;
}
.nav-bar>ul>li:first-child img{
margin-top: 22px;
}
.nav-bar-list{
width: 100%;
height: 229px;
background-color: #fff;
border-top: 1px sold #eee;
box-shadow: 0 3px 4px rgba(0, 0, 0, .1);
position: absolute;
top: 100px;
left: 0;
display: none;
}
.img-box{
width: 100%;
height: 137px;
margin-top: 35px;
border-right: 1px solid #eee;
box-sizing: border-box;
margin-bottom: 16px;
}
.nav-bar-list{
color: #333;
font-size: 12px;
line-height: 20px;
}
.nav-bar-list li{
width: 204px;
}
.nav-bar-list li:last-child .img-box{
border-right: none;
}
.nav-bar li:hover .nav-bar-list{
display: block;
}
.search>input{
width: 244px;
height: 50px;
border: 1px solid #e0e0e0;
box-sizing: border-box;
padding: 0 10px;
outline: none;
float: left;
border-right: none;
margin-top: 25px;
transition: all 2s;
}
.search>button{
width: 52px;
height: 50px;
border: 1px solid #e0e0e0;
float: left;
margin-top: 25px;
outline: none;
transition: all 2s;
}
.search>input:focus,.search>input:focus+button{
border-color: #b0b0b0;
}
.search>input:focus,.search>input:focus+button{
border-color: #b0b0b0;
}
.search>button:hover{
background-color: #ff6700;
border-color: #ff6700;
color: #fff;
}
.search-list{
width: 245px;
height: 241px;
background-color: #fff;
border: 1px solid #ff6700;
border-top: none;
box-sizing: border-box;
position: abso
老师,为啥我这个搜索框会从上往下移,这个框为啥会跑这里
