Swiper中文论坛
标题:
关于loop为true
[打印本页]
作者:
流星
时间:
2017-4-20 23:09
标题:
关于loop为true
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">Slide 1</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
</div>
</div>
<style type="text/css">
.swiper-container {
width: 600px;
height: 300px;
}
.swiper-slide{
font-size: 50px;
}
.swiper-slide:nth-of-type(1){
background: red;
}
.swiper-slide:nth-of-type(2){
background: yellow;
}
.swiper-slide:nth-of-type(3){
background: blue;
}
</style>
<script>
var mySwiper = new Swiper ('.swiper-container', {
direction: 'horizontal',
loop: true,
})
</script>
当loopd等于true时,slide1背景色为黄色了 而且滑到后面背景为空白,求解
作者:
hhhggg
时间:
2017-4-26 14:23
我今天最想说:「该会员没有填写今日想说内容.」.
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2