微信小程序底部或顶部固定,中间可以滑动(底部评论分享按钮)

2019-04-20  本文已影响0人  masterone

微信小程序顶部固定

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

微信小程序底部固定

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

猜你喜欢

热点阅读