tr.whois:nth-child(even) {
background-color: black;
}
.hide {
display: none;
}
<tr class="whois">row 1</tr>
<tr class="whois">row 2</tr>
<tr class="hide">row 3</tr>
<tr class="whois">row 4</tr>
<tr class="whois">row 5</tr>
here visible row (1,2,4,5) and nth-chid(even)
makes black (1,3,5)-
But I need this-