jQuery 图像滑块和 z-index?

发布于 2024-11-07 17:56:57 字数 230 浏览 4 评论 0原文

我正在尝试让以下站点正常工作:

“测试”徽标在 jQuery 滑块转换到下一张图片之前正确显示,即当它被推到新幻灯片后面时。我尝试过更改很多元素的 z-index,但似乎根本不起作用。我可以做什么来解决这个问题?

我使用的滑块是 Nivo:http://nivo.dev7studios.com/

I'm attempting to get the following site to work:

The "Test" logo appears properly before the jQuery slider transitions to the next picture, which is when it gets shoved behind the new slide. I've tried changing the z-index on a lot of the elements, but nothing seems to work at all. What can I do to fix this?

The slider I'm using is Nivo: http://nivo.dev7studios.com/

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

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

发布评论

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

评论(1

情感失落者 2024-11-14 17:56:57

为 div#logo 指定 100 或以上的 z-index:

#header #logo{
    z-index: 100
}

它适用于 div,但不适用于图像,因为 z-index 仅适用于定位 元素。即具有相对位置、绝对位置等的元素。

Give a z-index of 100 or above to div#logo:

#header #logo{
    z-index: 100
}

It works on the div but not on the image because z-index only works for positioned elements. I.e. elements that have position relative, absolute, etc.

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