table
英 [?te?bl]? ?美 [?teb?l]??
n.桌子;表,目錄;手術(shù)臺(tái),工作臺(tái),游戲臺(tái);平地層
vt.制表;擱置;嵌合;擱置
adj.桌子的
第三人稱單數(shù): tables 復(fù)數(shù): tables 現(xiàn)在分詞: tabling 過(guò)去式: tabled
layout
英 [?le?a?t]? ?美 [?le?a?t]??
n.布局,安排,設(shè)計(jì);布置圖,規(guī)劃圖
復(fù)數(shù): layouts
javascript tableLayout屬性 語(yǔ)法
作用:用來(lái)顯示表格單元格、行、列的算法規(guī)則。
語(yǔ)法:Object.style.tableLayout=automatic|fixed
javascript tableLayout屬性 示例
<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>
運(yùn)行實(shí)例 ?
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例