Android Webkit: Absolutely positioned elements don't respect z-index

后端 未结 8 976
星月不相逢
星月不相逢 2020-12-23 21:55

Nasty little bug, this one.

As illustrated in Android ticket 6721, the Android browser seems to not respect z-index when absolutely positioned elements are laid over

8条回答
  •  自闭症患者
    2020-12-23 22:33

    Past fixes for this issue for IE include, but are probably not limited to the following list. These may help solve the problem in Android for you.

    1. Put an iframe behind the absolute content. The iframe may obscure those elements for you

    2. When you display your absolute content, hide all of the problem elements with JavaScript

    3. Define the div's in the opposite order

    Point number 1 is deemed the most reliable fix for IE, but may not be the nicest fix for you.

提交回复
热议问题