sur une page web, j'utilise nth-child dans un tableau pour changer la couleur du fond de certaines cellules, avec le code suivant :
Code : Tout sélectionner
table tr:nth-child(2n+2) td:nth-child(2n+2),
table tr:nth-child(2n+3) td:nth-child(2n+3)
{
background: orange;
}
Merci.