随笔 - 18  文章 - 2 评论 - 0 阅读 - 15622
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

08 2023 档案
swiper触摸之后不会自动轮播了 解决办法
摘要:var mySwiper = new Swiper('.actJp', { loop: true, autoplay: { delay: 800, disableOnInteraction: false, //加这句 }, slidesPerView: 4.2, spaceBetween: 10, 阅读全文
posted @ 2023-08-15 16:26 zeroz 阅读(565) 评论(0) 推荐(1) 编辑
给id拼接变量,给nth-child()拼接变量
摘要:<div class="daic"> <p class="reward"></p> <p class="reward"></p> <p class="reward"></p> <p class="reward"></p> <p class="reward"></p></div> <p class=" 阅读全文
posted @ 2023-08-14 12:26 zeroz 阅读(67) 评论(0) 推荐(0) 编辑
swiper 设置 autoHeight: true, 第一个swiper下拉后,切换到第二个swiper后,滚动条不置顶,解决办法
摘要:给swiper添加事件 on: { slideChangeTransitionEnd: function (swiper,index) { document.documentElement.scrollTop = 0; // For modern browsers document.body.scr 阅读全文
posted @ 2023-08-01 15:18 zeroz 阅读(180) 评论(0) 推荐(0) 编辑
swiper 嵌套 swiper,内部的swiper在PC端无法滑动的解决办法
摘要:给swiper添加参数 nested: true ,即可解决该问题 var mySwiper1 = new Swiper('.swiper', { loop: false, watchSlidesVisibility: true, slidesPerView: 'auto', freeMode : 阅读全文
posted @ 2023-08-01 15:15 zeroz 阅读(803) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示