<table>
<tr>
<th> </th>
<td>$</td>
<td> </td>
</tr>
<tr>
<th> </th>
<td>$</td>
<td> </td>
</tr>
<tr>
<th> </th>
<td>$</td>
<td> </td>
</tr>
<tr>
<th> </th>
<td>$</td>
<td> </td>
</tr>
<tr>
<th> </th>
<td>$</td>
<td> </td>
</tr>
</table>
Oto mój kod, chcę <td>
S z "$" z tle #CCC
we wszystkich <tr>
s.użyciu nth-child w tabelach tr td
Czy ktoś może mi pomóc, jak to zrobić, używając nth-child
, pseudo klas?
tabeli tr TD: n-ty-dziecka (2) { tła: #ccc; } ten kod nt działa dla mnie –
Ale to wybierz wszystkie td to nie tylko 2 ...? Jak mogę wybrać tylko drugie dziecko? – alonblack