我有一個容器div
,其中div
是其他的div
的。在那裏我使用jQuery .show()
來顯示內容。div高度不一致
#container {
position: absolute;
width: 600px;
left: 50%;
margin-left: -300px;
background-color: white;
height: 100%;
}
#content {
font-size: 15;
margin: 0 auto 0 auto;
width: 550px;
}
內容div
增長超過容器div
長,所以當我向下滾動白色背景停止,離開我,沒有白色背景的存在。
這怎麼解決?
那麼你的HTML代碼在哪裏?如何鏈接或演示? – Sparky 2012-01-15 16:19:36
請嘗試使用'min-height:100%'代替。如果沒有演示,很難知道實際問題是什麼。嘗試在[JSFiddle](http://jsfiddle.net)中重現該錯誤,然後將其鏈接到您的問題中。 – 2012-01-15 16:49:18
當HTML丟失時,實際上不可能知道如何提供幫助。 – Sparky 2012-01-15 17:08:26