Html
    Css
    Js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
* {
margin:0;
padding:0;
}
.box {
width:300px;
margin:50px auto;
}
.title {
height:55px;
background-color:#efefef;
text-align:center;
line-height:55px;
}
.content {
height:0px;
background-color:#a1a1a1;
transition:all .3s linear;overflow: hidden;line-height:50px; text-align: center;
}
.box:hover .content {
height:200px;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

纯Css下拉框

0