Alterner la couleur des lignes d'une table
RésoluJe voudrais qu'un TR sur 2 ait une couleur différente.
:root
{--SubTabBkgnd: #dbe7ef;}
tr.sub:nth-of-type(1) {background: blue;}
tr.sub:nth-of-type(2) {background: green;}
<tr class="sub">
Toutes les lignes ont la même couleur TabBkgnd = #dbe7ef