HTML 元素超出部分可以滚动, 并隐藏滚动条

HTML 元素超出部分可以滚动, 并隐藏滚动条

1、效果图

在这里插入图片描述

2、实现方法

<Row style="height: 200px;overflow: hidden">
      <Col style="height: 100%;width:102%; overflow-y: scroll">
        <Table :data="tableData1" :columns="columns1" ></Table>
      </Col>
    </Row>

3、说明

1层div :设置高度 和 overflow:hidden
第2层div :设置高度:100% 和 width:102%(隐藏滚动条)和 overflow-y: scroll

猜你喜欢

转载自blog.csdn.net/zzzz121380/article/details/126379353