deleteTFoot() 方法用于從表格刪除 <tfoot> 元素。
tableObject.deleteTFoot()
如果該表有 <tfoot> 元素,則將它從文檔樹種刪除,否則什么也不做。
下面的例子刪除表的腳注:
<html>
<head>
<script type="text/javascript">
function delRow()
{
document.getElementById('myTable').deleteTFoot()
}
</script>
</head>
<body>
<table id="myTable" border="1">
<tr>
<td>Row1 cell1</td>
<td>Row1 cell2</td>
</tr>
<tr>
<td>Row2 cell1</td>
<td>Row2 cell2</td>
</tr>
<tfoot><td>my table foot</td></tfoot>
</table>
<br />
<input type="button" onclick="delRow()"
value="Delete table foot">
</body>
</html>
如對本文有疑問,請?zhí)峤坏浇涣髡搲?,廣大熱心網(wǎng)友會為你解答?。?點擊進(jìn)入論壇
Powered by 365建站網(wǎng) RSS地圖 HTML地圖
copyright © 2013-2024 版權(quán)所有 鄂ICP備17013400號