微信小程序视图容器组件
view
视图容器。

示例:


scroll-view
可滚动视图区域。

使用竖向滚动时,需要给一个固定高度,通过 WXSS 设置 height。
示例代码:



Bug & Tip
-
tip: 请勿在 scroll-view 中使用 textarea、map、canvas、video 组件
-
tip: scroll-into-view 的优先级高于 scroll-top
-
tip: 在滚动 scroll-view 时会阻止页面回弹,所以在 scroll-view 中滚动,是无法触发 onPullDownRefresh
-
tip: 若要使用下拉刷新,请使用页面的滚动,而不是 scroll-view ,这样也能通过点击顶部状态栏回到页面顶部
swiper
滑块视图容器。

注意:其中只可放置组件,其他节点会被自动删除。
swiper-item
仅可放置在组件中,宽高自动设置为100%。
示例代码:


网站栏目:
微信小程序视图容器组件
本文链接:
http://jkwzsj.com/view/160994.html