javascript tableLayout property


  Translation results:

table

英[ˈteɪbl] 美[ˈtebəl]

n.Table; table, directory; operating table, workbench, game table; flat floor

vt. tabulating; shelving; fitting; shelving

adj. table

Third person singular: tables Plural: tables Present participle: tabling Past tense: tabled

layout

UK[ˈleɪaʊt] US[ˈleˌaʊt]

n. Layout, arrangement, design; layout drawing, planning drawing

Plural: layouts

javascript tableLayout propertysyntax

Function: Used to display algorithm rules for table cells, rows, and columns.

Syntax: Object.style.tableLayout=automatic|fixed

javascript tableLayout propertyexample

<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>

Run instance »

Click the "Run instance" button to view the online instance

Home

Videos

Q&A