我想只选择表格中第一层'td'元素而不是任何嵌套表格的单元格。 如: <table id="Outer">
<tr>
<td> --this one
</td>
<td> --this one
<table>
<tr>
<td></td> -- but not this one or any deep
I've been having a lot of problems with jQuery 1.3.2只在我的一个网站上。这是一个Joomla网站,所以Mootools也包含在网页中(并且很难删除Mootools)。基本上问题在于用一个选择器调用基本的jQuery选择器(例如:"a", ".myClass",而不是"html a", ".myClass td"),将只返回第一个元素。 我已经通过