【发布时间】:2009-05-18 11:55:34
【问题描述】:
当我尝试在我的 jQuery Cycle 元素上放置一个元素时,它不起作用。该元素始终位于 jQuery 循环元素之后。我使用浮动:对;定位元素,并将其 z-index 设置为 100000,但无济于事。
Firebug 将 Cycle 元素及其子元素视为具有较低的 z 索引,并显示浮动元素位于正确的位置。
该元素永远不会显示在自行车图像上方。
<!-- the cycling set -->
<div id='headerimages'>
<img src='images/header1.jpg' alt='' style='' />
<img src='images/header2.jpg' alt='' style='' />
<img src='images/header3.jpg' alt='' style='' />
</div>
<!-- the floating element -->
<img src='images/logotransparent.png' alt='' id='logo' />
【问题讨论】:
-
这个问题为人们提供了一些有趣的“答案” >= 10k rep :)