出于某种原因,我似乎无法让 .animate 正常运行。有人能看出为什么吗?
我正在使用这个容器 div ...
#valve-menu {
position: absolute;
width: 780px;
top: 200px;
background-color: #9C3;
margin-right: 9px;
margin-left: 10px;
}
然后..
#control-cover{
height: 50px;
width: 180px;
overflow: hidden;
position: absolute;
}
#control{
background-color: #0C9;
height: 200px;
width: 180px;
margin-right: 10px;
position: absolute;
}
我的 Jquery 是这个
$(document).ready(function(){
//When mouse rolls over
$("#control-cover").mouseover(function(){
$(this).stop()
.animate({height:'150px'},
{queue:false, duration:600, easing: 'easeOutBounce'})
});
//When mouse is removed
$("#control-cover").mouseout(function(){
$(this).stop()
.animate({height:'50px'},
{queue:false, duration:600, easing: 'easeOutBounce'})
});
});
我想让控制 div 部分隐藏,然后 onmouseover 展开。