html:<table>
<tr>
<td>col 1</td>
<td>col 2</td>
<td>col 3</td>
<td>col 4</td>
</tr>
<tr>
<td>col 1</td>
<td>col 2</td>
<td>col 3</td>
<td>col 4</td>
</tr>
<tr>
<td>col 1</td>
<td>col 2</td>
<td>col 3</td>
<td>col 4</td>
</tr>
<tr>
<td>col 1</td>
<td>col 2</td>
<td>col 3</td>
<td>col 4</td>
</tr></table>css:table { margin: 10px;
}td { border: 1px solid #396; padding: 10px;
}
1 回答
aluckdog
TA贡献1847条经验 获得超7个赞
如果你要删掉第一行,下面这行就行
$(document).ready(function(){ $("table tr td:nth-child(1)").each(function(){ $(this).remove(); }); });
添加回答
举报
0/150
提交
取消