.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
background-color: red;
}
在bootstrap.css中更改此行,或者可以使用(奇数)或(偶数)代替(2n + 1)
引导表带条纹:如何更改条纹背景颜色?
.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
background-color: red;
}
在bootstrap.css中更改此行,或者可以使用(奇数)或(偶数)代替(2n + 1)