5

问题说明了一切,如何在 bootstrap 3.0 中嵌入 vimeo 视频?

示例代码:

<div class="container">
   <section class="row">
      <div class="span6">
         <div class="flex-video widescreen"><iframe src="//player.vimeo.com/video/71876963" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>
         </div>
       <div class="span6">
        ...
      </div>
    </section>
</div>

不幸的是没有工作。

4

2 回答 2

6

请尝试此代码,它在 bootply 中有效

<div class="container">
 <div class="row">
 <div class="span6">
 <div class="flex-video widescreen" style="margin: 0 auto;text-align:center;">
 <iframe allowfullscreen="" src="http://player.vimeo.com/video/71876963" frameborder="0" width="500" height="281"></iframe>

  </div> 


   </div>
   </div>
   </div>
于 2013-09-02T07:28:13.410 回答
0

这是一个对我有用的简单解决方案,在 Bootstrap 3.0 中进行了测试:

<div class="embed-responsive embed-responsive-16by9">
    <iframe src="https://player.vimeo.com/video/71876963"></iframe>
</div>
于 2017-01-30T10:37:25.710 回答