相关疑难解决方法(0)

Owl Carousel不会自动播放

我在我的网站上使用猫头鹰旋转木马.根据他们的文档,这段JavaScript应该工作:

<script>
$("#intro").owlCarousel({

// Most important owl features

//Autoplay
autoPlay : 5000,
stopOnHover : false
)}
</script>
Run Code Online (Sandbox Code Playgroud)

但由于某种原因,它不会自动播放.这是滑块的HTML:

<div id="intro" class="owl-carousel">
    <div class="item first">
      <div class="container">
        <div class="row">
          <div class="carousel-caption-left colour-white">
            <h2>Title Text</h2>
            <h1>Sub title text here.</h1>
            <p>If you like you can even add a sentence or two here.</p>
          </div>
        </div>
      </div>
      <div class="overlay-bg"></div>
    </div>
    <div class="item second">
      <div class="container">
        <div class="carousel-caption-left colour-white">
          <h2>Title Text</h2>
          <h1>Sub title text here.</h1>
          <p>If you like you can even add a sentence or two …
Run Code Online (Sandbox Code Playgroud)

html javascript owl-carousel

24
推荐指数
7
解决办法
11万
查看次数

标签 统计

html ×1

javascript ×1

owl-carousel ×1