收藏
回答

如何设置顶部区域在下拉的时候是固定的?




微信小程序是运行在微信的内核中,所以无论我如何设置,在下拉的时候,Page的所有内容都会向下滚动,不知道能否实现我设置的区域是固定的?


我已经试了如何设置,也没用.

"enablePullDownRefresh": false


.devices-titlebar {

top:0;

width: 100%;

height: 80rpx;

background-color: #353535;

display: flex;

border-bottom: 2rpx solid #f0f0f0;

position: fixed;

z-index:1;

}


滚动区域我设置是列表内容,不包含我的工具栏区域。


我的工具栏区域,我设置了和标题一样的颜色,想固定住这部分

  <view class="devices-titlebar" id="titlebar" style="flex-direction:row;">


  </view>


这是滚动区域:

  <scroll-view class="devices-scroll-view" scroll-y="true" style="height:100%" bindscrolltolower="lower">

    <view class="devices-lists" id="devices-lists">

</view>

 </scroll-view>






最后一次编辑于  2016-12-21
回答关注问题邀请回答
收藏

2 个回答

  • 阿东
    阿东
    2016-12-21

    把Android版本的微信从6.3.31升级到6.3.32,就没问题了,太好了,我的2个问题都解决了。如果以后用户的微信版本不升级,如何解决各种各样奇怪的问题呢?

    2016-12-21
    有用
    回复
  • 阿东
    阿东
    2016-12-21

    这个没办法解决吗?

    2016-12-21
    有用
    回复
登录 后发表内容