iT邦幫忙

0

bootstrap 4 carousel 內嵌youtube 如何暫停

各位大大好:
想請問我用bootstrap 4 carousel 內嵌youtube,但是在跑時,要按影片的暫停鍵,會變成滑到下一頁,請問有甚麼方法可以改善嗎?謝謝
或者有推薦slideshow的語法嗎?

<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
  <div class="carousel-inner">
    <div class="carousel-item active">
      <iframe width="100%" height="315" src="https://www.youtube.com/embed/w_JBF4CJ-9M "></iframe>    </div>
    <div class="carousel-item">
      <iframe width="100%" height="315" src="https://www.youtube.com/embed/w_JBF4CJ-9M "></iframe>     </div>
      </div>
  <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

尚未有邦友回答

立即登入回答