TD column width value not working with fixed table-layout

后端 未结 7 1439
北恋
北恋 2021-01-17 18:52

I have following table structure:

 element to know exactly how the entire table should be laid out, without needing to calculate widths based on individual cell styles.

提交回复
热议问题
col1 col
7条回答
  •  太阳男子
    2021-01-17 19:17

    The "archaic" width attribute does not take a unit, it expects something like width="20".

    However, the "most correct" way to define a table is like so:

    col1 col2 col3 col4 col5 col6 col7 col8

    This works especially well for large tables, because the browser only needs to read the