jQuery Animate无法正常工作
|
由于某种原因,我似乎无法使.animate正常运行。有人知道为什么吗?
我正在用这个
集装箱部门
#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扩展。
没有找到相关结果
已邀请:
2 个回复
伐教爸
磁辫覆氓
选择器将在您的html中搜索ID为
的元素,例如
。从代码示例中,您似乎有一个名为called5ѭ的CSS类。两者不一样。 您需要将
属性添加到html元素中,或通过类名搜索元素,例如
。