table-layout

{Table table-layout:fixed; } 
TableLayout to display the attributes table cell, row, column rule algorithm.

Fixed table layout:

Fixed table layout compared to the automatic table layout, allowing the browser to quickly lay out on the table.

In the fixed table layout, the horizontal layout depends only on the width of the table, column widths, the width of the table border, cell spacing, regardless of the contents of the cell.

By using a fixed table layout, the table may display a user agent after receiving the first line.

Automatic table layout:

In the automatic layout table, the column width is the widest of the column cell content without setting off the line.

This algorithm is sometimes slow, since it needs to access before determining the final layout table all content.

Explanation

This attribute specifies the layout completion table layout algorithm used. Fixed layout algorithm is faster, but less flexible, and the automatic algorithm is slower, but more reflective of traditional HTML table.

 

Guess you like

Origin www.cnblogs.com/lianchenxi/p/11307277.html
Recommended