IE8使用swipe2r插件 点击以后不能自动轮播

已经使用这个属性autoplayDisableOnInteraction:false, IE8下不兼容; 有没有人解决这个问题

阅读 3.2k
2 个回答

判断ie8 下使用自写的幻灯片插件

官网的文档上有解决方法
在IE8以下此选项可能会失效,可以使用startAutoplay()来重新启动,如下
var mySwiper = new Swiper('.swiper-container', {

 onAutoplayStop: function(swiper){
      if(!swiper.support.transitions){ //IE7、IE8
            swiper.startAutoplay()
      }
}

}

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进