Z-index in Internet Explorer not working

后端 未结 2 2068
耶瑟儿~
耶瑟儿~ 2020-12-05 15:15

I\'ve created a menu for a mobile site, when you click the menu button the menu slides opend, this is the page;

http://www.roadtotheweb.com/m.about.html

The

2条回答
  •  忘掉有多难
    2020-12-05 16:20

    It looks like you might be dealing with a known bug:

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

    You can see the bug report on Quirksmode website and a workaround explained in this blog post.

    Essentially what you have to do is wrap it in an element with higher Z-index, for example Here is a quick sketch of a workaround:

    ...

提交回复
热议问题