在我的一生中,我无法让我的 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>