我想要完成的是拥有一个固定宽度的第一个 div 和一个流动的第二个 div,它将填充父 div 宽度的其余宽度。
<div class='clearfix'>
<div style='float:left; width:100px;'>some content</div>
<div style='float:left'>some more content</div>
</div>
在这一点上,一切似乎都很好而且流畅。
<div style='display:table'>
<div style='display:table-cell; width:100px;'>some content</div>
<div style='display:table-cell'>some more content</div>
</div>
我想继续第二个,但我觉得第二个例子将来会让我头疼。
您能提供一些建议或见解吗?