Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 在Internet Explorer上嵌入YouTube视频_Html_Internet Explorer_Youtube - Fatal编程技术网

Html 在Internet Explorer上嵌入YouTube视频

Html 在Internet Explorer上嵌入YouTube视频,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中运行良好,并在网页中显示为嵌入式视频。但

我在网页上嵌入了一个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 player,你会发现它有两个版本 第一,即 第二非IE。 客户端可能缺少IE版本的flash player。 请尝试安装IE flash player,然后重试。祝你好运

请尝试以下代码:

<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>

好的。因此,我的问题的实际答案是,在一些嵌入式链接上,它们是:

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

其中一些是:

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


注意到区别了吗?第二个有“…”这是两个过多的“/”。看来Internet Explorer不喜欢这样,所以请尝试将您发送到url。其中一个奇怪的事情,呃…

IE。这就是这里发生的事情。我怀疑这是Flash播放器的问题。因为YouTube在Chrome和Firefox以及其他“现代”浏览器上使用HTML5。IE在HTML5方面还有很多工作要做,因此:YouTube可能会使用Flash作为在IE中播放视频的后备方法。请检查是否已在插件管理器中安装并启用了Flash。此外,请检查您是否未在兼容模式下查看页面。