我为一个新项目启动了一个Jquery下拉菜单,它在谷歌浏览器,火狐浏览器,Safari浏览器上按预期工作,但当然这让我在Internet Explorer上感到头疼。Jquery下拉菜单只在IE上闪烁
这里的东西, 在菜单首页查看鼠标在此页面 http://www.universidadedoingles.com.br/dev/index.ASP
,下拉appers,当你移动了IE中的链接,您看到背景的一些闪烁,这不发生在Chrome和ETC上。
这里是我用来做dd菜单的js尾音。
<script type="text/javascript">
$(document).ready(function() {
$("ul.mainmenu li.menuhome").mouseover(function(){
$(".arrow-spacer").show(); //When mouse over ...
//Following event is applied to the subnav itself (making height of subnav 150px)
$(this).find('.submenu').show().animate({height: '150px', opacity:'1'},{queue:false, duration:300})
});
$("ul.mainmenu li.menuhome").mouseout(function(){ //When mouse out ...
//Following event is applied to the subnav itself (making height of subnav 0px)
$(this).find('.submenu').hide().animate({height:'0px', opacity:'0'},{queue:false, duration:200})
});
//menu itembackground color animation
$("li").hover(function() {
$(this).animate();},
function() {
$(".arrow-spacer").hide();
});
});
</script>
就是这样,我想这可能是简单的,但它一直星期,我仍然无法得到它的工作。
非常感谢。
您测试过哪个版本的Internet Explorer? http://www.my-debugbar.com/wiki/IETester/HomePage – Sonny 2011-03-11 14:52:02
我不明白你为什么要隐藏“箭头 - 间隔”当李元素被徘徊? – 2011-03-11 15:23:26
出于某种原因,如果我不使用hide(),在将HOME链接悬停第一次后,箭头 - 间隔符将不会消失。所以我需要箭头才能显示何时将鼠标悬停在链接上,并在我将鼠标移出时隐藏。 – 2011-03-11 15:51:53