【问题标题】:How could you show controls for html5 video element in IE11?如何在 IE11 中显示 html5 视频元素的控件?
【发布时间】:2018-01-09 02:36:34
【问题描述】:

IE11(也可能是 10)在您将鼠标悬停在视频本身上之前不会显示视频控件。

我个人认为完全没用,尤其是当您同时使用海报元素时,因为用户无法知道图像实际上是视频。

有没有办法像 Chrome 一样“强制”IE 显示控件?

我使用的代码是:

<video width="100%" height="100%" poster="/content/files/images/Definition-of-Coaching.png" preload="metadata" controls>
        <source src="/Content/Files/Video/Definition-of-Coaching-SD.mp4" type="video/mp4">
        <source src="/content/files/video/Definition-of-Coaching-SD.webm" type="video/webm">
</video>

【问题讨论】:

标签: html internet-explorer video


【解决方案1】:

需要在声明video标签后添加控制标签。

如W3学校所示:

W3 Schools -HTML 5 Video

如果您删除了控件属性,控件将不会出现在视频中。

【讨论】:

  • controlsvideo 标记的属性。
  • 是的,我正确使用了标签。我使用的代码是:
  • 这已经很老了,但今天仍然是个问题。 Albert Herd 在 IE11 中发布的 W3 Schools 示例存在同样的问题 - 控件将在几秒钟后淡出。
猜你喜欢
  • 2015-10-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-04-21
  • 2021-08-19
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多