4
带有表格布局的表格:固定;以及如何使一栏变宽
所以我有一张这种风格的桌子: table-layout: fixed; 这将使所有列具有相同的宽度。我想有一列(第一列)变宽,然后其余列以相等的宽度占据表的其余宽度。 如何实现呢? table { border-collapse: collapse; width: 100%; border: 1px solid black; background: #ddd; table-layout: fixed; } table th, table td { border: 1px solid #000; } table td.wideRow, table th.wideRow { width: 300px; } <table class="CalendarReservationsBodyTable"> <thead> <tr> <th colspan="97">Rezervovane auta</th> </tr> <tr> <th class="corner wideRow">Auto</th> …