微信小程序的轮播图像自适应//xml代码view class=' rotation ' swiperclass=' home-swiper ' bind change=' bind change ' style=' ' ' wx : key=' { index } } ' swiper-item image data-id=' { index } } ' ' class=' slide-image ' bind load=' image loage js代码page (' imgurl ' : ' https://img0. Baidu.com/it/u=1271409927,137799855 FM=26 fmt=autogp=0. jpg ',{ } {'id': 3,' imgurl ' : ' https://img1. Baidu.com/it/u=38477392111 ' imgurl ' : ' https://img2. Baidu.com //所有图像的高度img //默认current:0,//wxss代码. slide-image { width: 100%; height: 100%; }效果展示