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

