我想覆蓋數據表的CSS。我需要將前兩列以灰色突出顯示,但其餘列則使用默認顏色。如何突出顯示不同顏色的數據表的前兩列?
我嘗試使用這樣的:
.grey {
background-color: rgba(128, 128, 128, .25);
}
<table>
<colgroup>
<col class="grey" />
<col class="grey" />
<col />
<col />
<col />
<col />
</colgroup>
<thead>
但數據表的默認CSS覆蓋它