相关疑难解决方法(0)

Twitter Bootstrap Modal停止Youtube视频

我是javascript的新手,并尝试使用Twitter引导程序来获得一个好看的网站并快速运行.我知道这与jquery有关,但是当我按下关闭按钮或关闭图标时,我不确定如何停止我的视频.

有人可以解释我如何让我的视频停止播放,因为即使我关闭窗口,我仍然可以在后台听到它.

<!-- Button to trigger modal -->
    <a href="#myModal" role="button" class="btn" data-toggle="modal"><img src="img/play.png"></a>

<!-- Modal -->
  <div id="myModal" class="modal hide fade" tabindex="-1" role=labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal" aria>×</button>
      <h3 id="myModalLabel">I am the header</h3>
    </div>
    <div class="modal-body">
      <p><iframe width="100%" height="315" src="http:com/embed/662KGcqjT5Q" frameborder="0" allowfullscreen></iframe></p>
    </div>
    <div class="modal-footer">
      <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    </div>
  </div>
Run Code Online (Sandbox Code Playgroud)

javascript youtube jquery twitter-bootstrap

37
推荐指数
6
解决办法
8万
查看次数

标签 统计

javascript ×1

jquery ×1

twitter-bootstrap ×1

youtube ×1