【发布时间】:2010-12-01 19:46:27
【问题描述】:
我想为 FIRST 和 LAST 列的所有(包括<th>)单元格提供一些特定的类,我试过这个:
$("table tr:first-child td:first-child").addClass("first-col-cell");
$("table tr:last-child td:last-child").addClass("last-col-cell");
..但它似乎不起作用。
不胜感激。
【问题讨论】:
标签: jquery select html-table cell