« SQL连接查询iis 启动 发生意外错误0x8ffe2740 »

createTFoot方法

语法:
oTFoot = TABLE . createTFoot()
参数:

返回值:
oTFoot :  对象(Element)。成功则返回新建 tfoot 的引用。否则返回 null 。

说明:
在 table 中建立一个新的无内容的 tfoot 。
假如 table 中没有 tfoot ,则此方法和将建立空的 tfoot 对象并添加到表格。假如一个或多个 tfoot 已经存在,则该方法将仅仅返回对其中第一个 tfoot 的引用。

<script>
var i_nowheight=200;
function rdl_doAdd(){
var myTFoot = document.all.myTable.createTFoot();
var myTR = myTFoot.insertRow();
for (i=0;i<3;i++) {
var myTD=myTR.insertCell();
myTD.innerText="第"+(i+1).toString()+"个单元格";
}
i_nowheight+=20;
window.resizeTo(320,i_nowheight);
}
</script>


<table cellspacing=1 id=myTable><tbody><tr><td>第1个单元格</td><td>第2个单元格</td><td>第3个单元格</td></tr></tbody></table>
<br><input type=button value=" 新建表格TFOOT " onclick="rdl_doAdd();">

原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。