具有最大高度的块内块上的CSS overflow-auto

时间:2014-12-30 08:35:51

标签: css

我想获得下一个布局:

******
div with max-height 80% percents of a screen

------
div with fixed height
------
++++++
div which grows until parent div (marked with *) 
is smaller than it's max-height
After parent div have reached max-height, 
this div should show vertical scroll.  
++++++

******

我用例子创建了jsfiddle。您可以在css中取消注释//max-height:210px;以查看我想要实现的内容。但是在小提琴中我有预定义的页面大小,我可以调整溢出块的高度。我怎么能在页面高度的百分比中做到这一点?

http://jsfiddle.net/wxdtwq5x/6/

0 个答案:

没有答案