Why does 100% not mean 100% height?

前端 未结 6 1917
南方客
南方客 2020-12-03 06:05

I am trying to get some divss to expand to fill the screen, but I am struggling. I have broken down the issue on this jsfiddle.

What I really want to kn

6条回答
  •  星月不相逢
    2020-12-03 06:33

    Percentage heights in CSS don't make a lot of sense to me. I would argue that it doesn't work the way it should, but CSS enthusiasts would insist that it does.

    This article discusses both the issue and solution in detail:

    http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks

    This might help too:

     
    
    
    text

    See here for more details on the above:
    How to make a floated div 100% height of its parent?

提交回复
热议问题