IE7 Z-Index Layering Issues

后端 未结 11 875
执念已碎
执念已碎 2020-11-22 11:31

I\'ve isolated a little test case of IE7\'s z-index bug, but don\'t know how to fix it. I have been playing with z-index all day long.

Wha

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 11:38

    In IE positioned elements generate a new stacking context, starting with a z-index value of 0. Therefore z-index doesn’t work correctly.

    Try give the parent element a higher z-index value (can be even higher than the child’s z-index value itself) to fix the bug.

提交回复
热议问题