次のように、テーブルの行にセルの 1 つのクラスを指定します。
私はこのテーブルを持っています、
<table id="mytable">
<tr>
<th>Name</th>
<th>Favorite color</th>
</tr>
<td>James</td>
<td>red</td>
</tr>
<tr>
<td>John</td>
<td>blue</td>
</tr>
</table>
で、このまま終わってほしい。
<table id="mytable">
<tr>
<th>Name</th>
<th>Favorite color</th>
</tr>
<tr class="red">
<td>James</td>
<td>red</td>
</tr>
<tr class="blue">
<td>John</td>
<td>blue</td>
</tr>
</table>
これは可能ですか?