table
英 [?te?bl]? ?美 [?teb?l]??
n.桌子;表,目錄;手術(shù)臺(tái),工作臺(tái),游戲臺(tái);平地層
vt.制表;擱置;嵌合;擱置
adj.桌子的
layout
英 [?le?a?t]? ?美 [?le?a?t]??
n.布局,安排,設(shè)計(jì);布置圖,規(guī)劃圖
css table-layout屬性 語(yǔ)法
作用:tableLayout 屬性用來(lái)顯示表格單元格、行、列的算法規(guī)則。
說(shuō)明:該屬性指定了完成表布局時(shí)所用的布局算法。固定布局算法比較快,但是不太靈活,而自動(dòng)算法比較慢,不過(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>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例