你能在以下方面提供帮助吗?
<div id="stage" class="flex-container">
<header>
<b>Top content</b>
</header>
<aside>
Right
</aside>
<footer>
Footer
</footer>
</div>我想有一个22%的宽度和88%的高度,安装在右边。我想让页眉开始88%的宽度和88%的高度安装在顶部,而页脚明显是: 22高和100%的宽度安装在地板上;)
我已经和这个问题斗争了一天了。希望你能帮帮我。
发布于 2016-03-03 16:25:49
啊,我刚刚找到了一个解决方案!:如果你问我的话,非常直接。
body,html
{
height:100%;
width: 100%;
margin: 0;
}
#stage
{
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
min-height: 100vh;
}
aside
{
background-color: red;
height: 88%;
position: absolute;
right: 0;
top: 0;
width: 12%;
}
footer
{
background-color: #ffc107;
bottom: 0;
color: #333;
height: 12%;
position: absolute;
width: 100%;
}
header
{
background-color: #3F51B5;
color: #fff;
height: 88%;
left: 0;
top: 0;
position:absolute;
width:88%;
}https://stackoverflow.com/questions/35766150
复制相似问题