javascript - Using mutliple Owl Carousel navigation issue
问题描述
I have created an multiple Owl Carousel with same class name dynamically on single page. The Carousel is working completely fine but the issue that the navigation (arrows & dots) for all carousel is showing on first once only.
My code:
$(".owlCarouselSlide").each(function() {
$(this).owlCarousel({
loop: false,
autoWidth: true,
nav: true,
dots: true,
navContainer: '#custCarouselProductNav',
dotsContainer: '#custCarouselProductDot',
responsive: {
0: {
items: 1,
margin: 10,
},
600: {
items: 1,
autoWidth: true,
margin: 24,
},
1000: {
items: 1,
margin: 16,
},
}
})
});
Issue screenshot:
解决方案
推荐阅读
- android - 应用程序在创建 pdf 并在 itextpdf 中添加图像时暂停一段时间:itext7
- node.js - 快递 POST 返回 404?
- javascript - fullcalendar popover 不适用于事件图标
- node.js - node js服务器发布请求忽略从axios发送的方括号“[]”我该怎么办?
- angular - Angular 12 优化构建失败,没有什么可做的
- c - 输入 7 - 8 个命令行参数时出错
- git - 我可以取回因运行 git restore -s@ -SW 而消失的工作树中的文件吗?
- c# - 有没有办法在没有端口转发的情况下公开统一服务器
- python - 我想从 7000 到 8000 范围内搜索 uidNumber。如何在 LDAP3 中做到这一点?
- python - 为什么我只得到循环中的最后一项?