简体   繁体   English

CSS3 z-index问题与transform:rotate()

[英]CSS3 z-index issue with transform:rotate()

In the following example, why do the last items in the 5 and 6-element lists overlap with item #2? 在下面的示例中,为什么5和6元素列表中的最后一项与项#2重叠? How is item #1 on top of the last item? 项目#1在最后一项之上如何? Is it possible to fix this so the last item will be under items #1 AND #2? 是否可以解决此问题,使最后一项位于项目#1和#2下?

http://jsfiddle.net/lookitscook/adw62/ http://jsfiddle.net/lookitscook/adw62/

That's a pretty ridiculous technique! 这是一个非常荒谬的技术! And by ridiculous, I mean COOL :) 荒谬的是,我的意思是酷:)

Z-index is initially defined by DOM position - the latest items in the DOM will appear on top of the others. Z-index最初由DOM位置定义-DOM中的最新项将显示在其他项的顶部。

You can manually control this by setting "z-index" properties on each of the elements. 您可以通过在每个元素上设置“ z-index”属性来手动控制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM