仅在 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;
});
});
关于IE7 中的 Jquery Superfish 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1889633/