使用 CSS,是否可以根据是否检查 an来更改background-color
整体的?<tr>
<input type="checkbox">
例子
<table>
<!-- This is the row I want to change the background of... -->
<tr>
<td>
<!-- ...when this is checked -->
<input type="checkbox" name="cb1" id="cb1" />
</td>
<td>Something 1</td>
</tr>
</table>