wxml
<scroll-view>
<view class="item-wrap">
//...
</view>
</scroll-view>
wcss
.item-wrap {
position: fixed; // /* 转化为 position: absolute */
}
注:在 scroll-view 子组件使用 position: fixed 不会生效。scroll-view 会将 position: fixed 转化为 position: absolute
网友评论