我有一個簡單的表:自第一胎在引導3.0
通過自定義CSS:
tr:first-child {
color: #696969;
background-color: black; !important;
}
的色彩應用,但background-color
,是不是。爲什麼?用last-child
background-color
工作。謝謝。
更新:如果我刪除table-striped
它的作品。但我需要保持它。
UPDATE2:table-striped
引導CSS:
.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
background-color: #f9f9f9;
}
我的順序是css。我的方式或你的方式只適用於IE。在FF和Chrome上不起作用。謝謝。 – Khrys
不知道如何通知工作,但這裏告訴你,我剛剛更新它 – Kooki3
是啊,作品!謝謝。 – Khrys