YUI 菜单位于 div 后面

发布于 2024-07-08 06:56:54 字数 245 浏览 4 评论 0原文

我已经实现了一个带有菜单的 YUI 分割按钮。 带有菜单的按钮出现在页眉和页脚 div 之间的滚动 div 中。 当在页脚 div 附近显示菜单时,菜单会出现在 div 后面。

我尝试将页脚 div 的 z 索引设置为 -1。 我尝试使用 z-index 500 定位包含带有菜单的按钮的 div(在滚动 div 内)。菜单始终出现在页脚 div 后面。

我没有使用 YUI 布局。 然而。 如果我这样做会有帮助吗?

I have implemented a YUI split button with a menu. The button with menu appears in a scrolling div between header and a footer divs. When exposing the menu near the footer div, the menu appears behind the div.

I have tried positioning the footer div with a z-index of -1. I have tried positioning the div (within the scrolling div) containing the button with menu using a z-index of 500. The menu always appears behind the footer div.

I am not using a YUI layout. Yet. If I did would it help?>

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

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

发布评论

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

评论(2

我最亲爱的 2024-07-15 06:56:54

除了设置 z-index 属性之外,您还必须更改 position 属性。 最简单的更改是 position:relative

尝试设置这两个属性。

我认为 YUI 布局不会帮助您解决这个特定问题。

In addition to setting the z-index property, you also have to change the position property. The easiest thing to change it to is position:relative.

Try setting both of those properties.

I don't think YUI layout will assist you in this particular problem.

不再让梦枯萎 2024-07-15 06:56:54

我开始使用 YUI 布局,我的问题不再存在。

I started using YUI layout and my issues no longer exist.

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