//在使用时要设置外层容器高度。并且要设置el-scrollbar 的高度为100%
<div style="height:600px;">
<el-scrollbar style="height:100%">
<div style="width:700px;height:700px;border:solid;" >
test
</div>
</el-scrollbar>
</div>
//写css去掉下方滚动条
/deep/ .el-scrollbar__wrap{
overflow-x: hidden;
}
element-ui的滚动条组件el-scrollbar(官方没有写)
最新推荐文章于 2023-05-25 17:24:16 发布