感谢各位大佬的解答,问题已经解决,多谢,继续学习了
swiper里头的图片怎么居中,怎么显示完全?求大佬解答[图片] 以下是代码 (home.wxss) .home-swiper-box{ padding: 20rpx; } .home-swiper-box .swiper{ height: 300rpx; } .home-swiper-box .swiper .swiper-item .image{ height: 150rpx; width: 345rpx; } (home.wxml) <view class="home-swiper-box"> <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}"> <block wx:for="{{background}}" wx:key="*this"> <swiper-item> <image src="{{item}}" mode="widthFix" ></image> <!-- <view class="swiper-item {{item}}"></view> --> </swiper-item> </block> </swiper> </view> (home.js) data: { background: ['/icons/come.png', '/icons/rel.png'], indicatorDots: true, vertical: false, autoplay: true, interval: 2000, circular: true, duration: 500 }, h后面的都还是原来没变的
2020-07-31各位大佬,那我现在开始从零开始学开发小程序的话每天坚持上课,半年能学的明白吗
从来没接触过小程序开发https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/
2020-07-21