1.顶部固定

<view class="top" style="width:100%;height:80px;border-top:1px solid red;background-color:#f0f0f0;position:fixed;top:0;"> 顶部固定</view>

2.底部固定

<view class="bottom" style="width:100%;height:80px;border-top:1px solid red;background-color:#f0f0f0;position:fixed; bottom:0;"> 底部固定</view>

 

TAG标签: 微信小程序滚动屏幕

http://www.xiaochengxub.com/read-99848.html