我有以下的HTML。使HTML元素填充頁面的其餘部分
<body>
<nav>..</nav>
<div class='container'>
<div class='row' id='header'>
...
</div>
<div class='row' id='content'>
...
</div>
</div>
</body>
我的目標是讓header
保持不變高度,而content
填充頁面(我有一個Highchart在裏面)的其餘部分。我試圖使用這裏的信息:how do I give a div a responsive height和這裏:http://codethatworks.blogspot.co.uk/2012/05/responsive-full-height-columns-using.html和這裏Make a div fill the height of the remaining screen space - 但沒有運氣。
我的基本理解是,我把身高設置爲100%
,而header
高度說25%,content
說75%
。 nav
在這裏混淆了什麼?
請注意,我用的引導3.
我們可以看到你的CSS嗎? – JeroenJK
'