2011-01-21 38 views
0

我有一個側邊欄有很多嵌套的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> 
+2

嘗試發佈您的*實際* HTML和CSS,而不是討論它「有點」。另外,歡迎來到Stackoverflow! =) – 2011-01-21 07:26:07

回答

0

你有沒有考慮過只用css應用圓角而不用擔心沒有他們的ieretards?

0

當擁有如此多的嵌套div時,如果容器div小於內部div的寬度和高度,就不會考慮DIV的寬度和高度,因爲這樣瀏覽器就可以'無法檢測到div有多遠。爲了解決這個問題,請正確使用CSS。