作者:爱的话心情_196 | 来源:互联网 | 2023-09-25 11:07
css 修改element组件自动生成后的样式:修改背景颜色,内边距。大于号表示子级,更精确.report-content-detaildiv:nth-child(2)
![](https://img2.php1.cn/3cdc5/3c66/5a0/c33e231e7b3920ca.png)
![](https://img2.php1.cn/3cdc5/3c66/5a0/d37a3d746d2c4ae3.png)
css 修改element组件自动生成后的样式: 修改背景颜色,内边距。
大于号表示子级,更精确
.report-content-detail > div:nth-child(2){
padding: 0px !important;
>.el-card>.el-card__body{
background-color: rgb(245,247,249);
}
}
点表示子级
// .report-content-detail > div{
// padding: 0px !important;
// .el-card__body{
//
// }
// }
树立目标,保持活力,gogogo!