el-tree滚动条

解决el-tree横向滚动条问题

        <div class="isTree">

        
        <el-tree></el-tree>

        </div>


<style lang="scss">
.isTree{
  width: 100%;
  height: 100%;
  overflow: auto;
  .el-tree{
    display: inline-block;
    min-width: 100%;
  }
}
</style>

2.0:

<style lang="scss">
.isTree{
  width: 100%;
  height: 100%;
  overflow: auto;
  .el-tree>.el-tree-node {
    display: inline-block;
    min-width: 100%;
  }
}
</style>

3.0

.isTree{
  width: 95%;
  height: 100%;
  overflow: auto;
  .el-tree>.el-tree-node {
    display: inline-block;
    min-width: 100%;
  }
}
发布了397 篇原创文章 · 获赞 59 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/qq_43532342/article/details/105707024
今日推荐