猫头鹰旋转木马中的克隆项目 [英] Cloned items in owl carousel

查看:73
本文介绍了猫头鹰旋转木马中的克隆项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建旋转木马时,我意识到猫头鹰添加了克隆的重复项.我的猫头鹰配置看起来像这样.我如何阻止这种情况发生.

While building the carousel I realized that an owl add's cloned duplicate items. My owl config looks like this. How do i stop this from happening.

owlDfe.owlCarousel({
            loop: false,
                        autoWidth:false,
                        nav:false,
                        responsiveClass:true,
                        responsive:{
                            0:{
                                items:sizes.mobile_portrait
                            },
                            568:{
                              items:sizes.mobile_landscape
                            },
                            768:{
                              items:sizes.ipad
                            },
                            800:{
                                items:sizes.desktop
                            },
                            1000:{
                                items:sizes.desktop,
                            }
                        }
          });

推荐答案

我遇到了这个问题 - 我发现将循环选项设置为 false 为我解决了这个问题.

I had this issue - I found that setting the loop option to false resolved it for me.

这篇关于猫头鹰旋转木马中的克隆项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆