IE9 中嵌入的 YouTube 视频无法正常工作

发布于 2024-11-15 11:49:14 字数 323 浏览 4 评论 0原文

我正在尝试在我的网站上嵌入 YouTube 视频,但它似乎无法在 IE 中工作。到目前为止似乎可以与其他浏览器一起使用。在 IE9 中,它显示一个框的轮廓,其中视频在左上角带有一个红色的小 X。

我已经尝试过 为什么我的嵌入的 YouTube 视频可以在 Firefox 中工作,但不能在 Internet Explorer 中工作? 没有成功。

I'm trying to embed a youtube video on my site and it doesn't seem to be working in IE. Seems to work on with other browsers so far. In IE9, it displays an outline of a box where the video would be with a little red X in the top left corner.

I have tried Why does my embedded YouTube video work in Firefox, but not Internet Explorer? with no success.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

°如果伤别离去 2024-11-22 11:49:14

您使用的是 64 位 IE9 吗? 根据 Adob​​e 的说法,他们还不支持它。此时您无法采取任何措施来修复它。

Are you using 64 bit IE9? According to Adobe, they don't support it yet. There's nothing that you can do to fix it at this point.

终弃我 2024-11-22 11:49:14

最近我也面临同样的问题。但以下代码即使在 64 位 ie 上也适用于我。

<iframe width="100%" height="100%" src="http://www.youtube.com/embed/'.$query_vars['v'].(($list)?'?list='.$list:'').'" frameborder="0" allowfullscreen></iframe>

其中 $query_vars['v'] 是我的视频 id,$list 是列表 id

您在集成 YouTube 视频时需要添加嵌入版本的 url。

recently i also faced same problem. but the following code works for me even on 64bit ie.

<iframe width="100%" height="100%" src="http://www.youtube.com/embed/'.$query_vars['v'].(($list)?'?list='.$list:'').'" frameborder="0" allowfullscreen></iframe>

where $query_vars['v'] is my video id and $list is the list id

You need to add embeded version of url when you integrate youtube video.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文