テーブルのスタイルを設定する CSS チュートリアルを見つけましたが、私のページには他のテーブルがあります。したがって、ここでセレクターを使用する方法がわかりません。tr:nth-of-type(odd)セレクターです。idしかし、これはまたはclassという名前のテーブルでのみ使用したいと考えていますplayerslist。
<table id="playerslist">
<thead>
<tr>
<th>Player Name</th>
<th>Player #</th>
<th>Team</th>
</tr>
</thead>
<tbody>
<tr>
<td>Simon</td>
<td>25</td>
<td>Team A</td>
</tr>
<tr>
<td>Richard</td>
<td>5</td>
<td>Team B</td>
</tr>
</tbody>
</table>
tr:nth-of-type(odd)をターゲットにする方法、thおよびtdof を持つテーブルの要素についてのアイデアはidありplayerslistますか?
ありがとうございました