Swiper中文论坛
标题:
页面滑动出现无限右滑谷歌开发模式没问题真机测试产生BUG
[打印本页]
作者:
新人学习中
时间:
2018-7-26 10:47
标题:
页面滑动出现无限右滑谷歌开发模式没问题真机测试产生BUG
<style>
.swiper-container {
width: 100%;
height:2.93rem;
}
.swiper-slide {
text-align: center;
font-size: 0.18rem;
background: #AEAEAE;
width: 1.83rem !important;
height: 1.72rem;
border-radius: 0.3rem;
margin-top: 0.4rem;
/*/* Center slide text vertically */
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
-webkit-align-items: center;
align-items: center;
}
.swiper-slide div{
position: absolute;
width: 2rem;
height: 0.8rem;
margin-left: -1rem;
left: 50%;
top: 1.9rem;
font-size: 0.25rem;
}
</style>
<body>
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">Slide 1
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 2
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 3
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 4
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 5
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 6
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 7
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 8
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 9
<div><b>¥</b>199.00</div>
</div>
<div class="swiper-slide">Slide 10
<div><b>¥</b>199.00</div>
</div>
</div>
</div>
</body>
<scrpit>
var swiper = new Swiper('.swiper-container', {
slidesOffsetBefore :8,
spaceBetween : 20,
autowidth: true,
autoheigh:true,
loop:true,
paginationClickable: true,
});
</script>
复制代码
作者:
新人学习中
时间:
2018-7-26 14:33
求大神解决方案
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2