Is it possible to have a table with width 100% (so the table fits the screen size), where the first and the last column have a fixed width, and the columns between take the
Nobody mentioned this one here trick: table{ table-layout: fixed; width: 100%; } th:first-child{ width: 300px; } yourfirst300pxcolumn fixedwidth fixedwidth also 300somethingsomething else 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
trick: table{ table-layout: fixed; width: 100%; } th:first-child{ width: 300px; } yourfirst300pxcolumn fixedwidth fixedwidth also 300somethingsomething else 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
table{ table-layout: fixed; width: 100%; } th:first-child{ width: 300px; } yourfirst300pxcolumn fixedwidth fixedwidth also 300somethingsomething else