使用微信小程序的scroll-view组件实现组件顶端或底端固定。
- 内容介绍
- 文章标签
- 相关推荐
本文共计242个文字,预计阅读时间需要1分钟。
1. 顶部固定+核心代码示例:view class=page__hd style=position:fixed; top:0; width:750rpx;>
2.底部固定+核心代码示例:
!-- 底部固定 --view class=page__hd style=position:fixed; bottom:0; width:750rpx;>1.顶端固定
本文共计242个文字,预计阅读时间需要1分钟。
1. 顶部固定+核心代码示例:view class=page__hd style=position:fixed; top:0; width:750rpx;>
2.底部固定+核心代码示例:
!-- 底部固定 --view class=page__hd style=position:fixed; bottom:0; width:750rpx;>1.顶端固定

