internet-explorer - Youtube视频无法在Internet Explorer 11中显示

标签 internet-explorer video youtube embed

因此,我有一个YouTube视频试图嵌入到我的页面之一中:http://www.rodypolis.com/videotest.html

上面的链接指向包含视频的测试页面。在任何其他浏览器(Firefox,Chrome,Opera)上播放视频时,视频将按原样填充帧,并且没有问题。

但是,我使用Internet Explorer 11尝试了此操作,并且视频无法显示。相反,视频显示在框架的内部很小。我已经尝试了一些方法来修复它,但是我不能。

您对IE11为什么不允许视频充满整个画面有任何想法吗?我该如何强制呢?谢谢!

最佳答案

有一个名为fitvids.js的jquery插件,可以完成您需要的操作。否则,只需使用css设置视频对象的样式,并为其设置宽度和高度。还有一个YouTube自动调整大小可用的here(需要几分钟的时间)

div#videocontainer{    
   max-width:80%;
   height: 400px;
   margin-left:auto;
   margin-right:auto;
   margin-top:50px;
   margin-bottom:50px;
}

关于internet-explorer - Youtube视频无法在Internet Explorer 11中显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24605194/

相关文章:

javascript - IE 中比较字符串时出现的预期错误数

html - 显示 : table-column disappears entirely in IE8 & IE9 的字段集

javascript - 如果图像具有特定尺寸,是否检索备用src?

javascript - 如何将Chrome扩展程序连接到Youtube Analytics API?

html - 谁能推荐好的插件/api 等来为旧浏览器添加 HTML5/CSS3 支持?

css - :hover pseudo-class of CSS does not work in IE7

javascript - 视频结束后重定向到随机网页

android - ThumbnailUtils.createVideoThumbnail 在捕获新视频时返回 NULL

video - 使用 GStreamer 将 M3U8 播放列表转换为 MP4

javascript - 从YouTube channel 中获取最新视频