官网的案例
官网提供案例本地运行的结果
同样的代码为啥现在结果不一样,在webview渲染模式下也能实现需要,skyline模式下就不行!!!
求解?
<view class="section center">
<view class="section-title center">layout: transformer -- type: scaleAndFade</view>
<swiper
circular
class="swiper-container"
layout-type="transformer"
transformer-type="scaleAndFade"
previous-margin="30px"
next-margin="30px"
>
<swiper-item wx:for="{{landscape}}" wx:key="*this">
<image class="img" src="{{item}}" mode="aspectFill" />
</swiper-item>
</swiper>
</view>
swiper 加间距
previous-margin="175rpx" next-margin="175rpx"
swiper-item 加css
transform: scale(0.85);
给 当前项 加css
transform: scale(1);
scale 缩放大小 和间距 自己调整
。能实现图里的布局就行。基础课3.8.4
求回答