tableLayout 属性设置或返回表格单元格、行和列的布局方式。
Property | |||||
---|---|---|---|---|---|
tableLayout | Yes | Yes | Yes | Yes | Yes |
返回 tableLayout 属性:
object.style.tableLayout
设置tableLayout属性:
object.style.tableLayout = "auto|fixed|initial|inherit"
Value | Description |
---|---|
auto | Column width is set by the widest unbreakable content. This is default.
|
fixed | Column width is set by the width of table and columns (not the content of the cells)
|
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
默认值: | 汽车 |
---|---|
返回值: | 一个字符串,表示用于表格的表格布局算法 |
CSS版本 | CSS2 |
CSS教程:CSS表
CSS 参考:表格布局属性
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!