z-index layering for HTML5 video (ipad) [duplicate]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 03:40:27
gion_13

After some digging, I found the solution to my problem, which was a very similar one.
When dynamically inserting a video tag (maybe with others as well) into the dom, the z-index property is messed up.
As you can see here, the solution is quite simple : you have to add the css3 property -webkit-transform-style: preserve-3d.
It's not documented as a bug, but this is the only workaround that I could find.
Hope this helps.

Mike Eng

Not sure if it applies to HTML5 video, but there's a similar issue with Flash video that can be solved by changing the "wmode" attribute.

I ran into this also. The only thing that I could get to work for me was to add

display:none

to the video tag when showing a div over it that needed to be clicked on.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!