【问题标题】:z-index layer and jquery animations with the Cycle plugin带有 Cycle 插件的 z-index 图层和 jquery 动画
【发布时间】:2011-11-09 18:35:15
【问题描述】:

我正在使用 Jquery 插件 Cycle,并希望在动画顶部添加一个图像按钮。动画中的图像从一侧滚动到另一侧。无论我做什么,按钮总是在动画图像下分层。 Z-index 在所有浏览器中都被忽略。 如何将其放在动画的 TOP 上?

【问题讨论】:

  • 你有一些代码可以展示吗? z-index 仅适用于定位元素:(绝对、相对或固定)。您是否可能没有在图像或其父级上设置位置 css?
  • 啊,我需要在图像按钮的 css 中添加一个位置属性才能识别 z-index。

标签: jquery jquery-animate z-index cycle layer


【解决方案1】:

z-index 属性要求元素具有position:relativeposition:absolute 才能发挥作用。是这样吗?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多