<template>
<view class="full">
<view class="full222">
</view>
<view class="sticky-box">
sticky
</view>
<view>
<text style="line-height: 90px;" class="textcenter">
1
2
3
4
5
6
7
8
9
10
</text>
</view>
</view>
</template>
<style>
.full222 {
width: 750upx;
height: 300rpx;
background-color: red;
}
.sticky-box {
/* #ifndef APP-PLUS-NVUE */
display: flex;
position: -webkit-sticky;
/* #endif */
position: sticky;
top: var(--window-top);
z-index: 99;
flex-direction: row;
margin: 0px;
background-color: blue;
}
</style>