小程序穿透滚动
发布于 6 年前 作者 mcheng 4222 次浏览 来自 问答
<view catchtouchmove="true">
   <textarea fixed />
   <text>你好</text>
   <view class="list" style="height:100rpx;overflow-y:scroll">//这块会是一个可滚动区域,请问如何让这块可以滚动....在这个弹窗设置catchtouchmove后
      <text>1</text>
<text>1</text>
<text>1</text>
<text>1</text>
<text>1</text>
<text>1</text>
  </view>
</view>
3 回复

我也遇到同样的问题;

你可以在弹出框内在需要滑动的地方加上:

<scroll-view scroll-y="true"></scroll-view>

并且设置它的高度,我是用max-height: 330rpx;

同求,只要在父节点catchmove之后,子节点就滑动不了了

view 改为 scroll-view, overflow-y 就不用了

回到顶部