我有一个滑块,它设置为循环
$ ->
mySwiper2 = new Swiper(".cultural-swiper-container",
keyboardControl: true
grabCursor: true
pagination: ".cultural-swiper-container .pagination"
paginationClickable: true
loop: true
autoplay: 10000
autoplayDisableOnInteraction: false
)
$(".cultural-slider .prev").on "click", (e) ->
e.preventDefault()
mySwiper2.swipePrev()
$(".cultural-slider .next").on "click", (e) ->
e.preventDefault()
mySwiper2.swipeNext()
问题是当循环结束并返回到第一张幻灯片时,它似乎没有重新初始化。我之所以这么说是因为它在文本的开头添加了 2 个图标字体,然后一旦我单击幻灯片以启动触摸事件或单击前进然后返回,它就固定了,就像它重新初始化它一样。
.swiper-wrapper
.swiper-slide.pink-slide
.swiper-bg
.sb-logo
i.icon-sb-mark
.container
.large-5.columns.small-centered
p We bring ideas to life, we help others realize their dreams and their goals, and we help push innovative companies to heights they aren’t able to reach on their own.
这是它在 IE 中的代码
.swiper-wrapper
.swiper-slide.pink-slide
.swiper-bg
.sb-logo
i.icon-sb-mark
.container
.large-5.columns.small-centered
p
i.icon-sb-mark
i.icon-sb-mark
We bring ideas to life, we help others realize their dreams and their goals, and we help push innovative companies to heights they aren’t able to reach on their own.
不知道发生了什么,它只是 IE 11