table

英[?te?bl]? ?美[?teb?l]??

n.桌;表,目錄;手術(shù)臺(tái),工作臺(tái),遊戲臺(tái);平地層

vt.製表;擱置;嵌合;擱置

adj.桌子的

第三人稱(chēng)單數(shù): tables 複數(shù): tables 現(xiàn)在分詞: tabling 過(guò)去式: tabled

layout

英[?le?a?t]? ?美[?le?a?t]??

n.佈局,安排,設(shè)計(jì);佈置圖,規(guī)劃圖

##複數(shù): layouts

javascript tableLayout屬性 語(yǔ)法

作用:用來(lái)顯示表格單元格、行、列的演算法規(guī)則。

語(yǔ)法:Object.style.tableLayout=automatic|fixed

javascript tableLayout屬性 範(fàn)例

<html>
<head>
<script type="text/javascript">
function setFixedTableLayout()
{
document.getElementById('myTable').style.tableLayout="fixed";
}
</script>
</head>
<body>

<table id="myTable" border="1" width="100%">
<col width="20%"><col width="40%"><col width="40%">
<tr>
<td>1000000000000000000000000000</td>
<td>10000000</td>
<td>100</td>
</tr>
</table>

<input type="button" onclick="setFixedTableLayout()"
value="Set fixed table layout">

</body>
</html>

執(zhí)行實(shí)例 ?

點(diǎn)擊 "執(zhí)行實(shí)例" 按鈕查看線上實(shí)例