【发布时间】:2013-06-01 23:30:43
【问题描述】:
如何创建 2 列布局,其中 1 列固定宽度,而另一列占用剩余空间?
最初,我尝试了一个流畅的布局,但不喜欢左列变得太小,所以我想保持它的宽度不变。
我试过setting the 2nd column's margin-left equal to the width of the first column,但这意味着第二列没有扩展到所有可用空间。它只占用所需的空间,这不足以保持布局的吸引力。
如何使#right 列填满#container 中的所有剩余空间?
【问题讨论】: