Set min-width in HTML table's

前端 未结 6 549
走了就别回头了
走了就别回头了 2020-12-29 01:40

My table has several columns.

Each column should have dynamic width that depends on the browser window size. On the other hand, each column must not be too tiny. So

6条回答
  •  我在风中等你
    2020-12-29 02:32

    min-width and max-width properties do not work the way you expect for table cells. From spec:

    In CSS 2.1, the effect of 'min-width' and 'max-width' on tables, inline tables, table cells, table columns, and column groups is undefined.

    This hasn't changed in CSS3.

提交回复
热议问题