table
英 [?te?bl]? ?美 [?teb?l]??
n.桌子;表,目錄;手術(shù)臺,工作臺,游戲臺;平地層
vt.制表;擱置;嵌合;擱置
adj.桌子的
layout
英 [?le?a?t]? ?美 [?le?a?t]??
n.布局,安排,設(shè)計;布置圖,規(guī)劃圖
css table-layout屬性 語法
作用:tableLayout 屬性用來顯示表格單元格、行、列的算法規(guī)則。
說明:該屬性指定了完成表布局時所用的布局算法。固定布局算法比較快,但是不太靈活,而自動算法比較慢,不過更能反映傳統(tǒng)的 HTML 表。? ??
注釋:所有瀏覽器都支持 table-layout 屬性。任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。
css table-layout屬性 示例
<html> <head> <style type="text/css"> table.one { table-layout: automatic } table.two { table-layout: fixed } </style> </head> <body> <table class="one" border="1" width="100%"> <tr> <td width="20%">1000000000000000000000000000</td> <td width="40%">10000000</td> <td width="40%">100</td> </tr> </table> <br /> <table class="two" border="1" width="100%"> <tr> <td width="20%">1000000000000000000000000000</td> <td width="40%">10000000</td> <td width="40%">100</td> </tr> </table> </body> </html>
點擊 "運行實例" 按鈕查看在線實例