css 修改element組件自動生成後的樣式

 

 

 

 

 

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{
//    
//   }
// }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章