导航和内容重叠的问题

发布于 2024-12-18 05:52:35 字数 171 浏览 4 评论 0原文

提前致谢。

我有一个导航栏,当您将鼠标悬停在其上方时,该导航栏会滑出,与页面其余部分的内容重叠。这与大多数内容完美配合,但是当我在屏幕上放置 flash 或 jquery 元素时,所述元素会显示在导航上。

我知道解决这个问题的一种方法是将导航栏 html 放在其他导航栏下面,但另一种方法会更好。

Thanks in advance.

I have a navigation bar that slides out when you hover over it, making overlap with the content on the rest of the page. This works perfectly with most of it, but when I put a flash or jquery element on-screen, said elements are presented over the navigation.

I know that one way to fix this would be to put the navigation bar html below the others, but an alternative way would be better.

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

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

发布评论

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

评论(1

调妓 2024-12-25 05:52:35

如果没有特定的代码示例(或演示页面的链接),几乎不可能进行故障排除。然而,有一些一般性的事情需要了解:

  • jQuery 或 Flash 元素的问题通常会有不同的独立解决方案。
  • JavaScript UI 元素几乎可以附加到文档的任何部分,因此更改 HTML 顺序不太可能有帮助

,实际建议:

  • z-index CSS 属性显然是尝试解决问题的首要位置。您可能需要对想要“位于顶部”的元素应用更高的 z 索引。 (注意,有些JS会动态改变z-indexes)。 Z-index 是一个善变的野兽,可能对你没有任何帮助。

Without specific code samples (or a link to a demo page) it will be almost impossible to trouble-shoot. However, there's some general things to know:

  • Problems with jQuery or Flash elements will often have different independent solutions.
  • JavaScript UI elements can be appended to virtually any part of the document, so changing HTML order won't likely help anyhow

and the actual suggestion:

  • The z-index CSS property is an obvious first place to look to try to solve the problem. You might need to apply a higher z-index to the element you want "on top". (be careful, some JS will dynamically change z-indexes). Z-index is a fickle beast and may not do anything for you.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文