我m using owl-Carousel 2 .
I want to change Items Count in different media Queries .
I
也使用Bootstrap(如果它有助于html BS的特殊属性)
答案 0 :(得分:-1)
如documentation中所述,您可以按照其示例使用responsive
设置:
$('.owl-carousel').owlCarousel({
loop:true,
margin:10,
nav:true,
responsive:{
0:{ //for width 0px and up
items:1 //show only one item at a time
},
600:{ //for width 600px and up
items:3 //show 3 items at a time
},
1000:{ //for width 1000px and up
items:5 //show 5 items at a time
}
}
});