IE 中下拉菜单后面有链接时消失

发布于 2024-10-08 10:50:24 字数 139 浏览 0 评论 0原文

我正在使用 SimpleJqueryDropdown 菜单。

我正在 IE7 和 8 上进行测试。当我将鼠标悬停在超链接上的下拉菜单上时,它会消失。 我尝试了 z-index 但它在 IE 中不起作用..

有人有这个问题 b4 吗?

im using SimpleJqueryDropdown menu..

im testing on IE7 and 8. when i mouseover the dropdown menu over hyperlinks, it disappears.
i tried z-index and it doesnt work in IE..

anyone has this problem b4??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好多鱼好多余 2024-10-15 10:50:24

我以前也遇到过这个问题。使用此 jquery 片段修复了它。下面的代码片段解决了我在此网站中的问题。

<!--[if lte IE 7]>
$(document).ready(function() {
  // lower the z-index to negative to fix the overlapping drop-down menu problem
  // for IE browsers only
  // the check for support of leading white space should give us false for IE 6-8
  if(!jQuery.support.leadingWhitespace){
    $('.post-header').css('z-index', -2);
    $('.container').css('z-index', -2);
  }
});
</script>
<![endif]-->

I had this problem before. Fixed it using this jquery snippet. The snippet below fixed my problem in this site.

<!--[if lte IE 7]>
$(document).ready(function() {
  // lower the z-index to negative to fix the overlapping drop-down menu problem
  // for IE browsers only
  // the check for support of leading white space should give us false for IE 6-8
  if(!jQuery.support.leadingWhitespace){
    $('.post-header').css('z-index', -2);
    $('.container').css('z-index', -2);
  }
});
</script>
<![endif]-->
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文