最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

HTML DOM createTHead() 方法

定義和用法

createTHead() 方法用于在表格中獲取或創(chuàng)建 <thead> 元素。

語法

tableObject.createTHead()

返回值

返回一個 TableSection,表示該表的 <thead> 元素。如果該表格已經(jīng)有了表頭,則返回它。如果該表沒有表頭,則創(chuàng)建一個新的空 <thead> 元素,把它插入表格,并返回它。

實例

下面的例子為表格創(chuàng)建了一個腳注:

<html>
<head>
<script type="text/javascript">
function createCaption()
{
var x=document.getElementById('myTable').createTHead()
x.innerHTML="My table head"
}
</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>
顺平县| 错那县| 微山县| 彩票| 得荣县| 楚雄市| 法库县| 揭阳市| 甘谷县| 高邮市| 诸城市| 烟台市| 淅川县| 儋州市| 得荣县| 许昌县| 柘荣县| 分宜县| 六安市| 灯塔市| 黄浦区| 澎湖县| 德阳市| 平凉市| 武山县| 崇礼县| 剑河县| 桐庐县| 永德县| 三明市| 临泽县| 龙江县| 怀化市| 南开区| 宝丰县| 东乡| 浦城县| 泽库县| 河间市| 凤凰县| 辽宁省|