对于我的生活,我无法让我的Superfish菜单停止隐藏在IE 7中的jQuery UI选项卡后面。我已经阅读了那里的文档,尝试更改z-index值并尝试了bgIframe插件,虽然我是不确定我是否正确实现它(在下面的例子中省略,使用Supersubs)。
这是我用于Superfish的Javascript - 使用Supersubs插件:
$(document).ready(function() {
$("ul.sf-menu").supersubs({
minWidth: 12, // minimum width of sub-menus in em units
maxWidth: 27, // maximum width of sub-menus in em units
extraWidth: 1 // extra width can ensure lines don't sometimes turn over
// due to slight rounding differences and font-family
}).superfish({
delay: 1000, // one second delay on mouseout
animation: {opacity:'show',height:'show'}, // fade-in and slide-down animation
speed: 'medium' // faster animation speed
});
});
这是我页面的结构:
<div id="page-container">
<div id="header"></div>
<div id="nav-admin">
<!-- This is where Superfish goes -->
</div>
<div id="header-shadow"></div>
<div id="content">
<div id="admin-main">
<div id="tabs">
<ul>
<li><a href="#tabs-1">Tab 1</a></li>
<li><a href="#tabs-2">Tab 2</a></li>
</ul>
<div id="tabs-1">
<!-- Content for Tab 1 -->
</div>
<div id="tabs-2">
<!-- Content for Tab 2 -->
</div>
</div>
</div>
</div>
<div id="footer-shadow"></div>
<div id="footer">
<div id="alt-nav">
<?php include $_SERVER['DOCUMENT_ROOT'] . '/includes/altnav.inc.php'; //CHANGE WHEN UPLOADED TO MATCH DOCUMENT ROOT ?>
</div>
</div>
</div>
答案 0 :(得分:11)
您是否尝试在要设置z-index的元素上设置position:relative?这通常可以解决问题。