element-ui的滚动条组件el-scrollbar(官方没有)
文章目录
<template>
<div style="height:600px;">
<el-scrollbar style="height:100%">
<div style="width:700px;height:700px;border:solid;" >
....... blabla.....
</div>
</el-scrollbar>
</div>
</template>
在使用时要设置外层容器高度。并且要设置el-scrollbar 的高度为100%
.el-scrollbar__wrap{
overflow-x: hidden;
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论