我设置了一个jfiddle示例,它看起来像我的身高:100%;不管用。身高:100%css无法正常工作
body, html
{
height:100%;
}
#full-wrap {
min-height:100%;
height: auto !important;
height:100%;
margin:0 0 -91px; /* 1 extra px from footer border */
clear:both;
border:thin solid red;
}
.contentCenter {
min-height:100%;
height:100%;
width:300px;
margin: 0 auto;
clear:both;
border:thin solid blue;
}
.footer {
height:90px;width:100%;
border-top:1px #E8E8E8 solid;
clear:both;
}
<div id='full-wrap'>
<div class='contentCenter'>
</div>
</div>
<div class='footer'>
</div>
有人可以帮我解决这个问题吗?因为你可以看到边界线(蓝色)不会100%。
你的代码是正确的#完整包装取100%身高但不是他的孩子 – sandeep