第一步:在App.vue中写入样式

<style scoped>
#app {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>

第二步:调节el-aside样式(注意如果没有背景色的话,看起来还是没有铺满)

<style scoped>
.el-aside{
  height: 100vh;
}
</style>

第三步:第二步的时候其实已经铺满了,但是没有背景颜色,视觉上看不到,所加上颜色:

<style scoped>
.el-aside{
  height: 100vh;
  background-color: rgb(84, 92, 100)
}
</style>

Logo

前往低代码交流专区

更多推荐