<swiper indicator-dots="true">
<swiper-item>
<image mode="widthFix" src="https://img.alicdn.com/imgextra/i4/6000000007955/O1CN01orfDoO28dRPXkTapy_!!6000000007955-0-octopus.jpg" />
</swiper-item>
<swiper-item><image mode="widthFix" src="https://gtms03.alicdn.com/tps/i3/TB1gXd1JXXXXXapXpXXvKyzTVXX-520-280.jpg" /></swiper-item>
<swiper-item><image mode="widthFix" src="https://gtms01.alicdn.com/tps/i1/TB1r4h8JXXXXXXoXXXXvKyzTVXX-520-280.jpg" /></swiper-item>
</swiper>
swiper{
width: 100%;
height: calc(100vw*520/280);
}
image{
width: 100%;
}
这样不能更改swiper的宽高吗?
只能通过给swiper增加一个class,然后通过类选择器更改吗?