wrapperClass
设置wrapper的css类名。
wrapperClass参数
- 类型:
- string
- 默认:
- swiper-wrapper
- 举例:
- my-wrapper
效果演示
使用方法示例
<div class="swiper-container">
<div class="my-wrapper">
<div class="swiper-slide">slider1</div>
<div class="swiper-slide">slider2</div>
<div class="swiper-slide">slider3</div>
</div>
</div>
<script language="javascript">
var mySwiper = new Swiper('.swiper-container',{
wrapperClass : 'my-wrapper',
})
</script>
转载原创文章请注明:文章转载自:Swiper中文网 [https://2.swiper.com.cn]
本文地址:https://2.swiper.com.cn/api/namespace/2014/1217/72.html