我對響應式YouTube視頻有以下代碼,但它根本不顯示。當我刪除課程,視頻顯示,但其寬度非常短。 Here是託管它的網站。如在網站上顯示YouTube視頻在添加響應式課程後不顯示
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="<?php echo get_field("youtube_video");?>" frameborder="0" allowfullscreen></iframe>
<div class="more-videos">
<button type="button" class="btn btn-warning">View More Videos From Matt</button>
</div>
</div>
HTML,
<div class="row">
<div class="embed-responsive embed-responsive-16by9">
<iframe class="embed-responsive-item" src="http://www.youtube.com/v/lQ2EZdkLCfc&version=3&loop=1&playlist=gq_zxxutiok,GEuouxgqa3Q,iwiXhnjlRuw" frameborder="0" allowfullscreen></iframe>
<div class="more-videos">
<button type="button" class="btn btn-warning">View More Videos From Matt</button>
</div>
</div>
</div>
需要包括重現您的問題,所以我們有一個[MCVE]請代碼。 –
@MichaelCoker:添加了詳細信息。 –
[將YouTube視頻縮小爲響應寬度](http://stackoverflow.com/questions/15844500/shrink-a-youtube-video-to-responsive-width) – pol