关于下拉菜单的问题 [英] issue regarding dropdown menu
本文介绍了关于下拉菜单的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题来自下拉列表. m在那里使用jquery,如果我不断将鼠标移到菜单上,则所有菜单开始进入slideIn和Out.我只希望只有当前菜单才能滑动.等效果就死了.请帮助我从上一个星期开始寻找解决方案.在此先感谢:)
my problem is coming with the dropdown. m using jquery there and if i continuously move the mouser over the menu all menu start coming slideIn and Out. i just want that only the current menu should slide. and other effect should die. plz help me finding the solution from last 1 week. thanks in advance :)
这是我的jquery的代码段
this is my code snippet of jquery
$('.navigation li').bind({
mouseenter: function() {
$('.hov', this).slideUp('fast');
$('.hov', this).slideDown();
},
mouseleave: function() {
$('.hov', this).slideUp();
}
});
推荐答案
.stop()-在匹配的元素上停止当前正在运行的动画.
.stop() - Stop the currently-running animation on the matched elements.
这篇关于关于下拉菜单的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文