我有一個側邊欄有很多嵌套的div來放置我的圓角corrners.but當我試圖設置內容的div高度等於90%,它不擴展。什麼是問題。我的html,身體有100%height.my div巢是這樣的一些東西。div x內mutilple divs不能擴展其高度指定%?
<body>
<div class="main"> //it contains header n content div,its height is 90%
<div class="header"></div> //its height is 10% of main div
<div class="content"> //its height is 90% of main div
<div class="vertical_navigation"> //its height is 99% of content div
<div><div><div><div> //thses divs are for rounded corner image concept
<div> </div> //this div contains the data.now its height is 80% but its not expanding?h
//i cant use min-height,its not working too.how to give height referenced to //vertical navi div??
</div></div></div></div>
</div>
</div>
</div>
<footer></footer>
</body>
嘗試發佈您的*實際* HTML和CSS,而不是討論它「有點」。另外,歡迎來到Stackoverflow! =) – 2011-01-21 07:26:07