小程序穿透滚动

发布于 7 年前作者 mcheng4360 次浏览最后编辑 7 年前来自 ask
<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 回复
haoxiulan
haoxiulan1 楼6 年前

我也遇到同样的问题;

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

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

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

heping
heping2 楼6 年前

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

li26
li263 楼5 年前

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