iPhone OS 3 上的 HTML5 视频标签出现在具有溢出:隐藏的层之外;

发布于 2024-09-12 11:55:41 字数 271 浏览 2 评论 0原文

我的图层中有一个 HTML5 视频标签,其中包含“overflow:hidden;”设置了它,但视频显示在溢出区域之外。它本质上是一个手风琴控件,因此默认情况下视频所在的图层将关闭,然后在激活时它将打开并带有一些向下滑动的动画。不幸的是,由于视频不尊重溢出属性,因此播放按钮始终可见,并且实际上位于网站上其他控件的顶部。有谁知道解决这个问题的方法吗?我尝试调整视频标签的 z-index,但没有成功。

注意:这似乎只是 iPhone OS(或 iOS)3 及更低版本的问题,因为新的 iOS 4 没有同样的问题。

I have an HTML5 video tag in a layer that has 'overflow: hidden;' set on it, but the video shows up outside the overflow area. It's essentially an accordion control, so the layer the video is in will be closed by default, and then when activated it will open up with a little slide down animation. Unfortunately, because the video isn't respecting the overflow property, the play button is always visible, and actually sits on top of other controls on the site. Does anyone know a way around this? I've tried adjusting z-index for the video tag, but without success.

Note: this seems to only be an issue with iPhone OS (or iOS) 3 and lower, as the new iOS 4 doesn't have this same problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以心动 2024-09-19 11:55:41

很可能它只是在旧版本中没有实现。遮挡视频会导致大量额外处理(特别是在视频解码是硬件加速的情况下)。如果在视频顶部放置绝对定位的元素也不起作用,我想说你只是运气不好。

顺便说一句,你为什么担心旧版本? Apple 没有正确向用户推送更新吗? (我避开苹果所以我不知道)

It's quite possible that it's just not implemented in the old version. Occluding video results in quite a bit of extra processing (especially if the video decoding is hardware accelerated). If putting an absolutely positioned element on top of the video doesn't work either, I'd say you're just out of luck.

Why are you worrying about old versions by the way? Doesn't Apple push updates to their users properly? (I avoid Apple so I wouldn't know)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文