<table style="width: 100%"> <tr> <td>Static length</td> <td>Static length</td> <td><div>Length varies</div></td> <td>Space filler</td> </tr> <tr> ... </tr> </table>
如何使第3列采用最小宽度(取决于其内容)和第4列采取其余的?
td:nth-child(3){ background:red; width: 1px; white-space: nowrap; }
DEMO