© 1999-2048 dssz.net 粤ICP备11031372号
[其它] 小程序scroll-view组件实现滚动的示例代码
说明:前言:这章我们使用小程序的 scroll-view组件 实现横向滚动和竖向滚动。 GitHub: https://github.com/Ewall1106/miniProgramDemo 1、竖向滚动 首先从简单的来,竖向滚动很简单,只用记住两点即可: 首先得设置 scroll-y 属性; 其次,一定要给 scroll-view 设置一个 height 高度; <view class=green style=width: 100%; height: 200px; background<weixin_38678521> 上传 | 大小:129kb