如何使用 JQuery 获取所有表格的第一列?
下面的代码在 IE 6.0 中无法工作,因为它不支持 first-child:
下面的代码在 IE 6.0 中无法工作,因为它不支持 first-child:
$('table.tblItemTemplate td:first-child');
谢谢
$('table.tblItemTemplate td:first-child');
谢谢
编辑,以下是更好的解决方案:
$('table.tblItemTemplate td:first-child').addClass('first');
td:first
,但是发布者已经将其修改为 td:first-child
,它匹配每一行的第一个 td
。 - g_thom