2011-01-21 59 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。