我有這種風格:
.ant-table-tbody > tr > td {
padding: 8px 0 !important;
height: 48px;
}
.ant-table-tbody > tr:last-child > td {
padding: 8px 0 !important;
height: 48px;
border-bottom: none;
}
最后一個定義幾乎是sam,除了我設定了`border-bottom:none`
我怎么能在一堂課上寫出來?
我試過類似的東西:
.ant-table-tbody > tr > td {
padding: 8px 0 !important;
height: 48px;
&.tr:last-child {
border-bottom: 1px red solid;
}
}
但它不作業
uj5u.com熱心網友回復:
您只需要更正格式
.ant-table-tbody {
> tr > td {
height: 48px;
padding: 8px 0 !important;
}
> tr:last-child > td {
border-bottom: 1px red solid;
}
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/436800.html
標籤:css
