0
我使用猫头鹰旋转木马作为缩略图查看器并尝试将活动类添加到“猫头鹰项目”中。我已经尝试afterAction和afterInit根据猫头鹰旋转木马文档,都添加到第一个项目的活动类,但没有其他选择时。将活动类添加到猫头鹰旋转木马中的猫头鹰项目
owldemo.owlCarousel({
items : 4,
responsive:false,
pagination: false,
navigation: true,
afterAction: function(el){
//afterinit: function(el)//same results
this
.$owlItems
.removeClass('active')
this
.$owlItems
.eq(this.currentItem)
.addClass('active')
}
});
我不能给没有这种重现问题完整的HTML代码的答案。你看过这个演示吗? http://owlgraphic.com/owlcarousel/demos/click.html –