我的项目中的滑块在localhost中完美运行。但是当它出现时它完全没有工作。为什么?我为了滑块包含了owl.carousel.min.js。
<section id="main-slider">
<div class="owl-carousel">
<div class="item" style="background-image: url(images/slider/bg1.jpg);">
<div class="slider-inner">
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="carousel-content">
<h2><span>HEADING</span></h2>
<p>Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. </p>
<a class="btn btn-primary btn-lg" href="#">Read More</a>
</div>
</div>
</div>
</div>
</div>
</div><!--/.item-->
<div class="item" style="background-image: url(images/slider/bg2.jpg);">
<div class="slider-inner">
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="carousel-content">
<h2>Your <span>TEXT</span></h2>
<p>Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. Sample text. </p>
<a class="btn btn-primary btn-lg" href="#">Read More</a>
</div>
</div>
</div>
</div>
</div>
</div><!--/.item-->
</div><!--/.owl-carousel-->
</section><!--/#main-slider-->