HTML DOM createTFoot() ·½·¨

¶¨ÒåºÍÓ÷¨

createTFoot() ·½·¨ÓÃÓÚÔÚ±í¸ñÖлñÈ¡»ò´´½¨ <tfoot> ÔªËØ¡£

Óï·¨

tableObject.createTFoot()

·µ»ØÖµ

·µ»ØÒ»¸ö TableSection£¬±íʾ¸Ã±íµÄ <tfoot> ÔªËØ¡£Èç¹û¸Ã±í¸ñÒѾ­ÓÐÁ˽Å×¢£¬Ôò·µ»ØËü¡£Èç¹û¸Ã±íûÓнÅ×¢£¬Ôò´´½¨Ò»¸öÐÂµÄ¿Õ <tfoot> ÔªËØ£¬°ÑËü²åÈë±í¸ñ£¬²¢·µ»ØËü¡£

ʵÀý

ÏÂÃæµÄÀý×ÓΪ±í¸ñ´´½¨ÁËÒ»¸ö½Å×¢£º

<html>
<head>
<script type="text/javascript">
function createCaption()
{
var x=document.getElementById('myTable').createTFoot()
x.innerHTML="My table foot"
}
</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>
</table>
<br />
<input type="button" onclick="createCaption()"
value="Create caption">

</body>
</html>
VUE