【问题标题】:YouTube embed iframe not showing in SafariYouTube 嵌入 iframe 未在 Safari 中显示
【发布时间】:2014-03-20 09:14:46
【问题描述】:

链接是http://thecodeclub.org/,并且有一个 YouTube 视频。

在 Chrome 中运行良好,但 iframe 在 Safari 中仍为空白?

有没有其他人遇到过这个问题或有解决方法?

<div class="wrapper wrapper-style2">
<article id="work">
  <header>
    <h2>What Most Schools Don't Teach</h2>
    <p>Even rap stars are learning to code...</p>
  </header>
 <div class="video-container">
<iframe width="560" height="315" src="https://www.youtube.com/embed/nKIu9yen5nc?rel=0" frameborder="0" allowfullscreen></iframe>
  </div>
<a href="#courses" class="button button-big">The Courses.</a>

</article>
 </div>

【问题讨论】:

  • 不确定你是否修复了它,但我可以在 Mavericks 的 Safari 中正常观看视频。也许 Safari 中的某些扩展问题可能会阻止它?
  • 嗨尼克。最终解决它只是一个CSS故障。不过感谢您的说明。
  • @PatGW 你能把你解决的css问题贴在这里吗?
  • 嗨@TamasKalman 我在下面添加了详细信息。刚刚将 https 更改为 http,这对我有用。

标签: html iframe youtube safari


【解决方案1】:

最后是 https 导致了问题。将其更改为http,如下所示,它工作正常。

<iframe width="560" height="315" src="http://www.youtube.com/embed/KX5PdVd1-OU" frameborder="0" allowfullscreen></iframe>

【讨论】:

    猜你喜欢
    • 2021-08-05
    • 1970-01-01
    • 1970-01-01
    • 2020-01-26
    • 2017-07-29
    • 2012-08-29
    • 2016-05-22
    • 2012-02-20
    • 2016-10-21
    相关资源
    最近更新 更多