我正在我的网站上工作,对HTML仍然很陌生。我试图使用Twitter Bootstrap和Twitter Bootstrap Lightbox代码在Lightbox中显示YouTube视频:http://jbutz.github.io/bootstrap-lightbox/Twitter Bootstrap灯箱展示YouTube视频
我已经能够获取图像以加载灯箱。但是,我不确定我需要做些什么才能让YouTube视频播放。当我查看YouTube文档时,它提供了iframe和embed选项。但是,当我使用其中一种替换代码并将链接更改为我的视频时,灯箱不会加载,当然也无法看到视频。
下面是使用嵌入选项我的代码:
<div class="container">
<div class="row">
<div class="span12">
<h4>Band Concert</h4>
<div id="bandlightbox1" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="lightbox-content">
<embed
width="420" height="345"
src="https://www.youtube.com/watch?v=og8cxXICoVU"
type="application/x-shockwave-flash">
</embed>
<div class="lightbox-caption">
<p>This is a video of my friends and I at our band concert. The guy in that glasses is our teacher person. The song is Friday I'm in Love for anyone who doesn't know. I'm on the piano that sounds like a harpsichord.</p>
</div>
</div>
</div>
</div>
</div>
</div>
任何帮助是极大的赞赏。我仍然很新,而且我很难过。
感谢
这是灯箱只是图像。另外,你可以看看他们的github,看到只有一种内容类型,即图像。有许多处理各种媒体的灯箱。一个是:http://dimsemenov.com/plugins/magnific-popup/,真是太棒了! – Christina