拜托,有人可以帮我处理 CSS(没有 JavaScript)吗?
主块可以是任何固定或不固定(其父级的百分比)高度,它不是窗口高度。
<div class="main" style="height: 1337px;">
<div class="foo">
This block should be displayed as usual
(not fixed height)
</div>
<div class="bar">
This block should be full height
(bar = main - foo - foo)
independently of this content
</div>
<div class="foo">
This block should be displayed as usual
(not fixed height)
</div>
</div>