最佳答案
我有一个普通的 HTML 表:
<table>
<tr>
<td class="first-column-style">FAT</td>
<td>...</td>
</tr>
<tr>
<td class="first-column-style">FAT</td>
<td>...</td>
</tr>
</table>
我想对特定列中的每个表单元格(td
)应用 CSS 样式。有没有可能不对该列中的每个表单元格应用 class
/style
属性,而且不使用 JavaScript?