element-ui官网上不存在的滚动条组件
<template>
<div style="height:600px;">
<el-scrollbar style="height:100%">
<div style="width:1200px;height:800px;margin:0 auto;" >
内容.....
</div>
</el-scrollbar>
</div>
</template>
使用时要设置外层容器高度,还要设置el-scrollbar 的高度为100%
设置
.el-scrollbar__wrap{ overflow-x: hidden;}