Swiper中文论坛
标题:
swiper在table中使用宽度异常 暂未找到解决办法
[打印本页]
作者:
隔壁老王
时间:
2016-12-28 23:59
标题:
swiper在table中使用宽度异常 暂未找到解决办法
swiper使用在table中时宽度会变成无法预测的值将demo中的自适应responsive.html中的代码修改成如下代码可测试
<table>
<tr>
<td style="width:50%">
<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 class="swiper-slide">Slide 4</div>
<div class="swiper-slide">Slide 5</div>
<div class="swiper-slide">Slide 6</div>
<div class="swiper-slide">Slide 7</div>
<div class="swiper-slide">Slide 8</div>
<div class="swiper-slide">Slide 9</div>
<div class="swiper-slide">Slide 10</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</td>
</tr>
</table>
复制代码
作者:
love2010大叔
时间:
2017-3-2 21:26
给table设置百分比宽度,让其下面的子标签逐一继承可行吗?
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2