【发布时间】:2010-10-20 23:02:35
【问题描述】:
我只想选择表格中的第一级“td”元素,而不是任何嵌套表格的单元格。 例如:
<table id="Outer">
<tr>
<td> --this one
</td>
<td> --this one
<table>
<tr>
<td></td> -- but not this one or any deeper nested cells
</tr>
</table>
</td>
</tr>
</table>
(是的,在产品代码中我会包括 tbody、thead...)
【问题讨论】:
标签: jquery css-selectors sizzle