html - 在 Internet Explorer 中嵌入 YouTube 视频

标签 html internet-explorer youtube

我在网页上嵌入了 YouTube 剪辑:

<div class="col-md-8">
<iframe id="theframe" width="400" height="325" src="http://www.youtube.com/embed/MYYOUTUBECLIP" frameborder="0" allowfullscreen class=""></iframe>

这在 Chrome 和 FireFox 中运行良好,并在网页中显示为嵌入式视频。但是,如果在 Internet Explorer(10 或 11)上查看,则当用户尝试查看该页面时,浏览器将重定向到 youtube,然后无法加载。

这是怎么回事?非常感谢...

最佳答案

最好的答案可能是,如果您注意到要播放 YouTube 视频,我们需要一个 plash 播放器,如果您从 filehippo 等网站下载 flash 播放器,您会看到它有两个版本 1、IE 第二非IE。 客户端可能缺少 IE 版本的 Flash 播放器。 尝试安装 IE Flash 播放器并重试。祝你好运。

试试这段代码:

<object type="application/x-shockwave-flash" data="http://www.youtube.com/embed/MYYOUTUBECLIP" width="400" height="325">
    <param name="movie" value="http://www.youtube.com/embed/MYYOUTUBECLIP" />
</object>

关于html - 在 Internet Explorer 中嵌入 YouTube 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29166911/

相关文章:

javascript - 使用 jquery 在 dom 的其余部分中查找特定元素之后的第一个匹配项

html - 创建对 Angular 蒙版效果

html - 如何切断比可用空间长的文本并显示 '...' ?

html - 汉堡菜单图标过渡问题 scs

javascript - 即 : why isn't AJAX resulting HTML updated in DOM?

asp.net - 文本区域在 IE 中不显示换行符

internet-explorer - GWT 对话框中 Internet Explorer 上的 Google Maps Transparant 磁贴

objective-c - 在 UIWebView 中播放 YouTube 视频时强制使用纵向模式

youtube - 如何使用 Youtube API v3 获取自动生成的 channel 的本地化标题和描述?

android - 使用 VrVideoView (Google VR SDK) 在 YouTube 上加载 360 度视频?