<scroll-view class="VerticalNav nav" scroll-y scroll-with-animation :scroll-top="verticalNavTop" style > <view class="cu-item" :class="item.id == selectedMid ? 'text-green cur' : ''" v-for="(item, index) in teamNamelist" :key="index" @tap="tabSelect(item.id, index)" >{{ item.name }}</view> </scroll-view>
样式发现
height: 100%; 是错误 的
.VerticalNav.nav { 85px; white-space: initial; border-right: 1px solid rgba(195, 194, 196, 0.5); // height: 100%;高度计算 height: calc(100vh - 95px); }