2011-06-12 67 views
0

我正在使用此示例中的超级菜单: http://users.tpg.com.au/j_birch/plugins/superfish/#examples(带有Supersubs)。 即使在ie6中,它在每个浏览器中都很棒! 当我完成复制到我的项目时,一切似乎都很好,但只是IE6出现问题。下拉不出现,真的不能找到问题!我甚至尝试过相同的jQuery版本(如示例)。 这里是我的菜单:http://tvim.de/cmsms/ 你们知道怎么回事? 谢谢!Superfish Dropdown不会出现在IE6中

回答

1

在这段代码中,你有一个偷偷摸摸的问题:

jQuery(document).ready(function(){ 
    jQuery("#navi ul").supersubs({ 
     minWidth: 12, 
     maxWidth: 27, 
     extraWidth: 1, // <<< RIGHT HERE, remove the comma 
    }).superfish({ 
     autoArrows:false, 
     dropShadows: false, 
     speed:'fast', 
     animation: {opacity:'show',height:'show'} 
    }); 
}); 

这被称为Trailing Comma of Death。一旦我删除它,你的菜单就开始工作了,尽管你的二级菜单显示可能有问题。

http://jfcoder.com/test/missplacedcomma.html

+0

哇。你是对的!谢谢!第二级出现了!但下一个问题:第三级别不会出现。 aaaaarrrgg – nicmare 2011-06-12 09:55:59