鼠标滑上去的时候阻止事件冒泡,然后做个修改顶部距离的延迟动画
$(function(){
$(".floating").hover(function(){
$(this).stop().animate({bottom:49},500);
},function(){
$(this).stop().animate({bottom:0},500);
}
)
})
css重点:
.ourservice_m {
height
:
375px
;
overflow
:
hidden
;
position
:
relative
;
}
.floating {
bottom
:
0
;
position
:
absolute
;
}