* {
box-sizing:border-box;
}
body {
margin:0;
padding:0;
font-weight:500;
font-family:"Microsoft YaHei","宋体","Segoe UI","Lucida Grande",Helvetica,Arial,sans-serif,FreeSans,Arimo;
}
#container {
width:100%;
height:50px;
margin:0 auto;
}
div.search {
padding:10px 0;
}
form {
position:relative;
width:30%;
margin:0 auto;
}
input,button {
border:none;
outline:none;
}
.bar input {
width:100%;
height:42px;
padding-left:13px;
border:2px solid #54a0ff;
border-radius:5px;
background:transparent;
top:0;
left:0;
}
@media (max-width:1199px) {
form {
width:50%;
}
}@media (max-width:991px) {
form {
width:60%;
}
}@media (max-width:768px) {
form {
width:70%;
}
}.bar button {
height:42px;
width:100px;
cursor:pointer;
position:absolute;
background:#54a0ff;
border-radius:0 5px 5px 0;
font-size:17px;
color:white;
text-align:justify;
top:0;
right:0;
}
.bar button:hover {
background:#1e90ff;
}
/* 下拉框 */
.select {
position:absolute;
top:0;
right:0;
margin:0;
}
.box {
margin:0;
padding:0;
}
.title {
top:0;
height:42px;
width:42px;
background-color:#54a0ff;
text-align:center;
line-height:45px;
font-size:20px;
color:white;
border-radius:0 5px 5px 0;
}
.title:hover {
background:#1e90ff;
}
.content {
position:absolute;
left:-42px;
border-radius:5px;
}
.content li {
height:0px;
width:50px;
background-color:#54a0ff;
transition:all .3s linear;
overflow:hidden;
line-height:42px;
text-align:center;
}
.box:hover .content li {
height:42px;
}
.content li:nth-child(1) {
transition-delay:0ms
}
.content li:nth-child(2) {
transition-delay:100ms
}
.content li:nth-child(3) {
transition-delay:200ms
}
.content li:nth-child(4) {
transition-delay:300ms
}
ul,li {
list-style:none;
cursor:pointer;
}
.content li:hover {
background:#1e90ff;
}
更新时间:2019-11-17 23:40:05