【发布时间】:2018-10-23 07:49:04
【问题描述】:
所以我正在制作一个网站,我需要更多的滑块,具有不同的类,以便我可以自定义它们,例如在滑块上将显示 3 个幻灯片,另一个将只显示一个。
这是其中之一的代码:
<div class="testimonials owl-carousel owl-theme owl-loaded">
<div class="owl-stage-outer">
<div class="owl-stage">
<div class="owl-item">
<div class="s__t__card">
Distinctively myocardinate adaptive action items without high-quality initiatives. Holisticly envisioneer web-enabled methodologies with integrated relationships. Energistically engage covalent action items whereas customer directed technology. Interactively customize stand-alone services via reliable results.a
</div>
</div>
</div>
</div>
</div>
jQuery:
$(document).ready(function(){
$('.owl-carousel').owlCarousel({
loop: true,
margin: 30,
nav: false,
dots: false,
autoplay: true,
autoplaySpeed: 2000,
autoplayTimeout: 4000,
responsive: {
1000: {
items: 3,
}
}});
$('.testimonials').owlCarousel({
loop: true,
margin: 30,
nav: false,
dots: true,
autoplay: true,
autoplaySpeed: 2000,
autoplayTimeout: 4000,
responsive: {
1000: {
items: 1,
}
}});});
显示的是 3 张幻灯片而不是 1 张,请帮忙!
【问题讨论】:
标签: jquery owl-carousel-2