我設置了一個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