IE7中的Jquery Superfish问题 [英] Jquery Superfish problem in IE7

查看:134
本文介绍了IE7中的Jquery Superfish问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

only in IE7 the submenu appear under my page's content. I use bgframe plugin.

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

Here my code: $("ul.sf-menu").superfish({ speed: 'fast', autoArrows: false // disable generation of arrow mark-up }).find('ul').bgIframe({opacity:false});

你有什么主意吗?

非常感谢. 再见 Z

Thank you very much. Bye Z

推荐答案

您可能会发现这小段代码很有帮助,它可以对Z顺序进行深层伏都教.我没有创建它,但是它为我节省了无数小时.

You may find this little chunk of code helpful, it does deep voodoo with the Z-Order. I did not create it, but it has saved me countless hours.

一种解决许多问题的方法 IE7是动态逆转 的默认z-index堆叠顺序 页面上的元素.这将 确保您的元素更高 HTML源代码也将具有更高的 页面上的Z-index顺序,求解 大部分IE堆叠问题.如果 您正在使用jQuery(最好的 有Javascript库),这是 快速修复...

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

您可以在这里找到所有内容 ...

这篇关于IE7中的Jquery Superfish问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆