<style>
table{
border-collapse: collapse;
border-spacing: 0;
table-layout: fixed;
}
</style>
table 單元格平均分配tr
實現上面效果的方法,我們只需要爲table指定table-layout: fixed屬性即可
w3c上對table-layout: fixed屬性的說明
automatic 默認。列寬度由單元格內容設定。
fixed 列寬由表格寬度和列寬度設定。
inherit 規定應該從父元素繼承 table-layout 屬性的值。