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