YouTube iframe嵌入的代码无法在IE7或IE兼容模式下运行 [英] YouTube iframe embed code not working in IE7, or in IE Compatability Mode

查看:338
本文介绍了YouTube iframe嵌入的代码无法在IE7或IE兼容模式下运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我们的公司网站一直在使用iframe嵌入方法,因为YouTube切换到了这一点,而且一切似乎都运行正常。截至上周,我们开始在IE7和IE9(兼容模式)中使用黑盒代替视频。我没有在这里或网上找到任何似乎专门解决这个问题的东西,除了几个帖子说关闭兼容性视图。

So, our corporate web site has been using the iframe embed method since YouTube switched to this, and everything seemed to be working fine. As of last week, we started getting black boxes in place of the video in IE7 and IE9 (in compatibility mode). I haven't found anything here or online that seems to specifically address this problem, other then a couple of posts saying "Turn off compatibility view."

我们可以使用单个视频的弃用对象嵌入方法(当然不是最佳的),但对于播放列表,除了iframe方法之外,我们似乎没有其他选项。

We can use the deprecated object embed method for single videos (which isn't optimal, of course), but for playlists, it looks like we have no other option except for the iframe method.

还有其他人遇到过这个问题吗? YouTube iframe代码最近有变化吗?任何帮助都将不胜感激。

Has anyone else run across this issue? Has something recently changed in the YouTube iframe code? Any help at all would be appreciated.

推荐答案

我们使用YouTube建议的iframe编码遇到了同样的问题。它看起来像一个安全设置。

We have run into the same problem, using the iframe coding suggested by YouTube. It looks like a security setting.

但是YouTube上有一个解决方案。如果您选中启用隐私增强模式复选框,则会获得略有不同的YouTube主机,这似乎支持兼容模式:

But there is a solution given on YouTube. If you select the "Enable Privacy-enhanced mode" check-box, you get a slightly different YouTube host, which seems to support compatibility mode:

<iframe width="420" height="315" src="http://www.youtube-nocookie.com/embed/VFNFDPpkTJs" frameborder="0" allowfullscreen></iframe>

这篇关于YouTube iframe嵌入的代码无法在IE7或IE兼容模式下运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆