我想要一个类似桌面的整页宽度布局。 顶部的某些菜单(未知高度,取决于内容), 和底下的div,它占用视口中的所有可用空间。使div扩展为占用所有可用空间
div {
padding: 0px
}
html,
body {
height: 100%;
padding: 0px;
margin: 0px;
}
.outer {
background: olive;
height: 100%;
}
.menu {
background: orange;
}
.should_fill_available_space {
background: brown;
}
<div class="outer">
<div class="menu">
Lorem Ipsum Lorem Ipsum Lorem Ipsum
</div>
<div id="this" class="should_fill_available_space">
Brown color should go all the way down
</div>
</div>
我有这种情况下的codepen: https://codepen.io/marek-zganiacz/pen/NvEaxr
我想should_fill_available_space
走一路下跌,如情况下menu
将有height:10%
和should_fill_available_space
有'高度:90%'。