noSwipingClass
不可拖动块的类名,当noSwiping设置为true时,并且在slide加上此类名,slide无法拖动。
noSwipingClass参数
- 类型:
- string
- 默认:
- swiper-no-swiping
- 举例:
- stop-swiping
效果演示
第二个slider加入了stop-swiping。
使用方法示例
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
slider1</div>
<div class="swiper-slide stop-swiping">
slider2</div>
<div class="swiper-slide">
slider3</div>
</div>
</div>
<script language="javascript">
var mySwiper = new Swiper('.swiper-container',{
noSwiping : true,
noSwipingClass : 'stop-swiping',
})
</script>
转载原创文章请注明:文章转载自:Swiper中文网 [https://2.swiper.com.cn]
本文地址:https://2.swiper.com.cn/api/namespace/2014/1217/77.html