1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div class="margin-top flex justify-around">
<a class="text-white margin-right la-model">
<div><i class="text-df iconfont icon-search text-white"></i></div>
<div class="searModel flex justify-between align-center padding-xs">
<div class=""><input type="text" id="kkk"></div>
<div class="margin-left-xs"><i class="iconfont icon-search text-df text-black333"></i></div>
</div>
</a>
<a href="/" class="text-white margin-right"><i class="text-df iconfont icon-unie61d"></i></a>
<a class="text-white la-model"><i class="text-df iconfont icon-weixin"></i>
<div class="dModel model-bottom">
<img src="" alt="">
</div>
</a>
</div>

$(".la-model").hover(function () {
$(this).addClass("cur")
}, function () {
$(this).removeClass("cur")
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.la-model {
position: relative;
.dModel {
visibility: hidden;
opacity: 0;
position: absolute;
width: 120px;
height: 120px;
left: 50%;
margin-left: -60px;
background: #fff;
border-radius: 5px;
box-shadow: 1px 2px 6px 1px rgba(0,0,0,0.123);
.function-transition-all-ease();
&.model-top {
bottom: 110%;
}
&.model-bottom {
bottom: -125px;
}
}
.searModel {
visibility: hidden;
opacity: 0;
position: absolute;
width: auto;
top: -15px;
right: -80px;
background: #fff;
border-radius: 5px;
box-shadow: 1px 2px 6px 1px rgba(0,0,0,0.123);
.function-transition-all-ease();
input {
border: 1px solid #efefef;
background: none;
padding: 8px 5px;
}
}
&.cur {
.dModel {
visibility: visible;
opacity: 1;
}
.searModel {
visibility: visible;
opacity: 1;
right: -10px;
}
}
}

效果请参考 证投网 网站