<template>
<view class="container">
<swiper>
<swiper-item>
<view class="box"></view>
<view v-for="item in 20" :key="item" class="item">
{{item}}
</view>
</swiper-item>
</swiper>
</view>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>
swiper {
height: 10000px;
}
.container {
height: 100vh;
.box {
position: fixed;
right: 0;
top: 200px;
width: 100rpx;
height: 100rpx;
border: 1rpx solid red;
}
.item {
padding: 50rpx;
}
}
</style>

4***@qq.com
- 发布:2025-05-06 14:41
- 更新:2025-05-06 16:22
- 阅读:104
4***@qq.com (作者)
有没有解决办法
2025-05-06 16:24