【问题标题】:Embeding Youtube Video in website在网站中嵌入 Youtube 视频
【发布时间】:2017-06-27 13:30:33
【问题描述】:

我想使用 youtube 上的嵌入选项将视频放在我的网站上。我已经添加了它,代码如下。

该代码在 Firefox 浏览器中运行良好,但在其他浏览器中无法运行。建议我解决方案。

<div style="width:100%;height:100%;width: 100%; height: 461.25px; float: none; clear: both; margin: 2px auto;">

<embed src="https://www.youtube.com/embed/vfGRnSiRWcE?rel=0&amp;hl=en_US&amp;rel=0&amp;autohide=1&amp;autoplay=1" wmode="transparent" type="application/x-shockwave-flash" width="100%" height="100%" allowfullscreen="true" title="Adobe Flash Player">

【问题讨论】:

  • 代码:
    youtube.com/embed/…" wmode="transparent" type="application/x-shockwave-flash" width="100%" height="100%" allowfullscreen="true" title="Adobe Flash Player">
  • 您有过题外话或被否决的问题的历史,并且有失去提问权限的风险。 You should read this before you post your next one.

标签: html css youtube


【解决方案1】:

您可以在所有浏览器上使用 iframe HTML 标签、iframeworks。

<iframe width="100%" height="100%" src="https://www.youtube.com/embed/vfGRnSiRWcE" frameborder="0" allowfullscreen></iframe>

【讨论】:

    猜你喜欢
    相关资源
    最近更新 更多
    热门标签