IE7 中的 Jquery Superfish 问题

标签 jquery internet-explorer-7 superfish

仅在 IE7 中,子菜单出现在我的页面内容下。 我使用 bgframe 插件。

这是我的代码: $("ul.sf-menu").superfish({ 速度:'快', autoArrows: false//禁用箭头标记的生成 }).find('ul').bgIframe({opacity:false});

你有什么想法吗?

非常感谢。 再见 Z

最佳答案

您可能会发现这一小段代码很有帮助,它对 Z 顺序进行了深入的巫术。我没有创建它,但它节省了我无数的时间。

One way to fix many of the issues with IE7 is to dynamically reverse the default z-index stacking order of the elements on your page. This will ensure the elements higher in your HTML source will also have a higher z-index order on your page, solving most of the IE stacking issues. If you’re using jQuery (the best Javascript library there is), here’s the quick fix...

$(function() {
    var zIndexNumber = 1000;
    $('div').each(function() {
        $(this).css('zIndex', zIndexNumber);
        zIndexNumber -= 10;
    });
});

You can find it all here ...

关于IE7 中的 Jquery Superfish 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1889633/

相关文章:

javascript - iOS 6 上的 Safari 是否缓存 $.ajax 结果?

html - IE7 float UL 不显示

jquery - 当有很多子节点且没有 "grandchildren"节点时,superfish 下拉列表将被列为列

javascript - Superfish HTML 和 CSS 不显示菜单

在 firefox 4 上垂直显示的 html 水平菜单

jquery - 如何将多个复选框值传递到数组中

javascript - 滑动范围为0和1001时如何显示和隐藏元素?

Javascript 函数 - FB oAuth 函数将其转为 twitter oAuth?

javascript - 如何使用 jQuery 和 IE7 检查附加的 <img/> src 属性是相对的还是绝对的?

internet-explorer - IE7 HTTP 错误 400