简体   繁体   中英

How to put absolutely positioned DIV behind the SPAN or relatively positioned DIV?

Is it possible to put absolutely positioned DIV behind the SPAN or relatively positioned DIV? It seems to me that z-index does not affect SPANs etc.

Use span { display: block; } span { display: block; } .

I think that will place the span above the absolutely positioned div. And the z-index should also be defined. Also, I usually don't use position: relative for a div that has to be placed below other div's .

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.

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