<scroll-view class="scroll-w" scroll-x>
<view class="item"></view>
</scroll-view>
.scroll-w{with:100%;white-space:nowrap;}
.item{width:100rpx;height:100rpx;display:inline-block}
小程序scroll-view横向滚动
最新推荐文章于 2024-07-29 15:37:55 发布
<scroll-view class="scroll-w" scroll-x>
<view class="item"></view>
</scroll-view>
.scroll-w{with:100%;white-space:nowrap;}
.item{width:100rpx;height:100rpx;display:inline-block}