CSS 下拉菜单与 IE7 中的内容重叠

发布于 2024-10-05 06:14:32 字数 288 浏览 0 评论 0原文

我在 IE7 中的下拉菜单中遇到了这个问题。每当我将鼠标悬停在下拉菜单上时,当我将鼠标悬停在内容顶部的元素上时,它就会立即上升。 http://www.legrandconfectionary.com/gift-boxes/

我认为一个立场:相对在标题上可以解决问题,但在某些页面(例如松露口味)上,我有一个工具提示效果,如果这样做的话,它会出现在导航下方。我真的很感激对此的一些帮助。谢谢!

I'm having this issue in IE7 with my drop down. Whenever I hover over my dropdown it goes up as soon as i hover over an element on top of the content. http://www.legrandconfectionary.com/gift-boxes/

I thought a position: relative on the header would solve the problem but on certain pages like the truffle flavors I have a tooltip effect that goes under the nav if done so. I'd really appreciate some help on this. Thanks!

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

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

发布评论

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

评论(1

熟人话多 2024-10-12 06:14:32

有多种方法可以解决此问题。这里有两个:

  • a 标记设置为 display: block,然后使悬停事件基于 a 而不是 li

  • li 指定除 auto 或 100% 之外的高度

There are several ways that you can fix this. Here's two:

  • Set the a tag to display: block, and then make your hover events based on the a instead of the li.

or

  • Specify a height other than auto or 100% for the li's
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文