gpt4 book ai didi

jquery - 显示 owl carousel 2 或之前版本中的所有元素

转载 作者:太空宇宙 更新时间:2023-11-04 13:17:14 24 4
gpt4 key购买 nike

DEMO Owl Carousel 2

Owl Carousel 2 website

我需要添加“查看全部”按钮,但它是如何制作的?

现在它只是一个轮播代码:

$('.owl-carousel').owlCarousel({
loop: true,
nav: true,
items: 9,
});

最佳答案

DEMO

$('.owl-carousel').owlCarousel({
loop: true,
nav: true,
items: 9,
});
$(".owl-nav").append('<div class="owl-show-all" style="">Show All</div>');

$("body").on("click",".owl-show-all",function(){
alert('here comes yout show all logic');
});

关于jquery - 显示 owl carousel 2 或之前版本中的所有元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24331617/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com