【发布时间】:2014-01-07 07:33:02
【问题描述】:
我有以下 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 是不是在这里混淆了?
请注意,我使用的是 Bootstrap 3。
【问题讨论】:
-
<nav>应该去哪里?我的意思是,如果标题为 25%,内容为 75%,您希望导航适合哪里?
标签: javascript html css highcharts