In the following example, why do the last items in the 5 and 6-element lists overlap with item #2? How is item #1 on top of the last item? Is it possible to fix this so the last item will be under items #1 AND #2?
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.
You can manually control this by setting "z-index" properties on each of the elements.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.