Jquery owl转盘激活器div类名
上面的代码运行良好。但是当我更改名为owlcarousel的类时,它就不起作用了。我的问题是为什么它不适用于任何其他类。是否需要保留类名owl carousel 谢谢。在所有情况下,您都应该将owl carousel类添加到元素中, 例:Jquery owl转盘激活器div类名,jquery,html,owl-carousel,Jquery,Html,Owl Carousel,上面的代码运行良好。但是当我更改名为owlcarousel的类时,它就不起作用了。我的问题是为什么它不适用于任何其他类。是否需要保留类名owl carousel 谢谢。在所有情况下,您都应该将owl carousel类添加到元素中, 例: 您还必须将当前具有owl carousel类的元素的类名更改为您在$'中定义的同一个类。无论是什么类。owlCarousel{只有owl carousel类名有效。任何其他类名无效。 $(document).ready(function() { $('
您还必须将当前具有owl carousel类的元素的类名更改为您在$'中定义的同一个类。无论是什么类。owlCarousel{只有owl carousel类名有效。任何其他类名无效。
$(document).ready(function() {
$('.owl-carousel').owlCarousel({
margin: 10,
nav: true,
loop: true,
responsive: {
0: {
items: 1
},
600: {
items: 3
},
1000: {
items: 5
}
}
})
});
<div class="your-own-class owl-carousel"></div>