<el-card class="dir-tree">
<el-tree />
</el-card>
.dir-tree {
width: 100%;
height: 100%;
overflow: auto;
.el-tree {
display: inline-block;
min-width: 100%;
}
}
解决el-tree横向滚动条问题
最新推荐文章于 2024-06-13 16:02:55 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)
<el-card class="dir-tree">
<el-tree />
</el-card>
.dir-tree {
width: 100%;
height: 100%;
overflow: auto;
.el-tree {
display: inline-block;
min-width: 100%;
}
}