iPad Safari mobile seems to ignore z-indexing position for html5 video elements

前端 未结 11 2004
鱼传尺愫
鱼传尺愫 2020-11-29 04:46

I got a video element on a page that\'s working fine both in safari mobile and desktop. I have a seme-transparent pull-down menu that\'s working fine. The problem is, when t

11条回答
  •  借酒劲吻你
    2020-11-29 04:52

    The issue only occurs if the video element was dynamically created. If the element was just in the page as it loaded, z-index works fine.

    You can fix z-index on dynamically created videos by giving the video element -webkit-transform-style: preserve-3d.

    Yep, it's as bad as haslayout on IE!

提交回复
热议问题