【发布时间】:2017-02-21 10:09:51
【问题描述】:
是否可以更改选定表格标题下表格单元格的应用 css?我不在乎它是如何被选中的,我只想使用 css 将某些东西应用于那些选择了表格标题的表格单元格,例如斜体和下划线。
<table>
<tr>
<th>col1</th>
<th class="selected">col2</th>
</tr>
<tr>
<td>cell1a</td>
<td>cell2b</td>
</tr>
<tr>
<td>cell1aa</td>
<td>cell2ba</td>
</tr>
</table>
css:(原型...)
for the column position of the th row that is selected on this table
apply this css to the column position of all the td elements of this table
{
font-style:italic;
text-decoration: underline;
}
【问题讨论】:
标签: css