如下:灰色和红色的高度都不确定,怎么保证左边高度太高需要滚动时右边一直能在可视范围内?
<script setup lang="ts">
import {ElRow,ElCol} from 'element-plus'
</script>
<template>
<div>
<ElRow :gutter="10">
<ElCol :span="12">
<div class="h-[1900px] bg-gray-500"></div>
</ElCol>
<ElCol :span="12">
<div class="bg-red-600 h-[200px]"></div>
</ElCol>
</ElRow>
</div>
</template>
<style scoped>
</style>
实现效果:http://43.143.65.230/demo/index.html