vue右侧生成滚动条css配置
在div内书写内容,给div配置一个类。
<template>
<div class="dashboard-editor-container">
// 定义一个类名
</div>
</template>
<style rel="stylesheet/scss" lang="scss" scoped>
// 这个是滚动条的类的设置
.dashboard-editor-container {
padding: 15px;//填充内边距
background-color: rgb(240, 242, 245);//背景颜色
overflow-y: auto;
height: 672px;
.chart-wrapper {
background: #fff;
padding: 16px 16px 0;
margin-bottom: 32px;
}
}
</style>