我需要#slides_ribbon_left和#slides_ribbon_right把它放在#框架后面。我想知道为什么z索引没有帮助!这是链接- http://layot.prestatrend.com/,有人能帮上忙吗?
发布于 2012-03-05 06:18:32
#幻灯片有z-index: 100和#frame z-index: 0,它们是兄弟,所以#slide的任何子元素都会在#frame之上。据我所知,您还需要更改一些html。下面的链接也可能有帮助:https://developer.mozilla.org/en/Understanding_CSS_z-index/The_stacking_context
发布于 2012-03-05 06:12:15
要使z索引生效,需要在元素上使用相对位置、固定位置或绝对位置。
只需将position: relative添加到每个元素(也可以是固定的或绝对的,取决于您想要什么)。
https://stackoverflow.com/questions/9559286
复制相似问题