jq遍历表格

//设置多顶行的每个td的宽度
$("#Tbl tr:eq(0) td").each(function (i){
                $(this).width($("#" + divID + " table tr:eq(0) td:eq(" + i + ")").width());
});

  

posted @ 2012-08-16 13:04  microsoftzhcn  阅读(610)  评论(0编辑  收藏  举报