tr:nth-child(odd) {
background-color: lightskyblue;
}
tr:nth-child(even) {
background-color: lightpink;
}
th {
background-color: lightseagreen;
}
<table class="table table-sm">
...
</table>
// Add the table and table striped class from bootstrap
<table class="table table-striped">
/* Add the following CSS style after loading Bootstrap
to change the color of table-striped: */
.table-striped>tbody>tr:nth-child(odd)>td,
.table-striped>tbody>tr:nth-child(odd)>th {
background-color: red; /* Choose your own color here */
}