Swiper中文论坛
标题:
手机轮播图片大小如何定义
[打印本页]
作者:
tuhuikao0
时间:
2016-8-22 15:56
标题:
手机轮播图片大小如何定义
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="../../plus/images/1_01.jpg" width="wWidth" height="h3" ></div>
<div class="swiper-slide"><img src="../../plus/images/3-01.jpg"width="wWidth" height="h3" ></div>
<div class="swiper-slide"><img src="../../../imgcdn.weiqudao.net/9371/wsite/8a9d292f-a7e4-4508-96f7-1825819f30e8.jpg"></div>
</div>
js 代码里定义了swiper-container 大小在移动端显示正常的,但是图片就是原始尺寸,该怎么办?
作者:
tuhuikao0
时间:
2016-8-22 15:58
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide"><img src="../../plus/images/1_01.jpg"></div>
<div class="swiper-slide"><img src="../../plus/images/3-01.jpg" ></div>
<div class="swiper-slide"><img src="../../../imgcdn.weiqudao.net/9371/wsite/8a9d292f-a7e4-4508-96f7-1825819f30e8.jpg"></div>
</div>
swiper-container的框架尺寸已经是正确了,就是图片一直是原始尺寸
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2