@import '~@/assets/style/public.scss'; .demo-chart-index { .col { height: 300px; margin-bottom: 20px; .el-card { @extend %unable-select; height: 100%; .el-card__body { height: 100%; padding: 0px; } // 有header的卡片的body高度需要减去header &.header-in { .el-card__body { height: calc(100% - 59px); } } } } }