开发者

Superfish Dropdown does not appear in IE6

开发者 https://www.devze.com 2023-03-12 20:57 出处:网络
I am using the superfish menu from this example: http://users.tpg.com.au/j_birch/plugins/superfish/#examples (with Supersubs).

I am using the superfish menu from this example: http://users.tpg.com.au/j_birch/plugins/superfish/#examples (with Supersubs). It works great in every browser even in ie6!! When i finished copying it to my project, everything seems fine but just IE6 makes problems. the dropdown does not appear and really cant find the problem! i even tried the same jquery version (开发者_Python百科like the example). here is my menu: http://tvim.de/cmsms/ do you guys know whats wrong?? thanks!


In this code, you have a sneaky problem:

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'} 
    });
});

This was called the Trailing Comma of Death. Once I removed that, your menu began working, although you might have an issue with your second-level menus displaying.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消