jQuery 图像滑块和 z-index?
我正在尝试让以下站点正常工作:
“测试”徽标在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为 div#logo 指定 100 或以上的 z-index:
它适用于 div,但不适用于图像,因为 z-index 仅适用于定位 元素。即具有相对位置、绝对位置等的元素。
Give a z-index of 100 or above to div#logo:
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.