Is there a way to see the stacking context, in IE/Firefox/Chrome/etc.?

前端 未结 4 611
逝去的感伤
逝去的感伤 2021-01-30 12:41

I\'m trying to track down a z-index problem. I\'m looking at the page in IE9\'s DOM Inspector, and I just can\'t figure it out.

I have one element with a z-index of 100

4条回答
  •  无人共我
    2021-01-30 13:14

    For z-index to work, you have to explicitly set the position to fixed, absolute, or relative.

    Here's a great explanation: http://coding.smashingmagazine.com/2009/09/15/the-z-index-css-property-a-comprehensive-look/

提交回复
热议问题