height 100% doesn't work, two divs inside div

后端 未结 8 1574
伪装坚强ぢ
伪装坚强ぢ 2021-01-22 19:45

See css: http://jsfiddle.net/4JgA4/114/

Also here:

8条回答
  •  无人共我
    2021-01-22 20:26

    It doesn't get the full height because the original container has no height. So 100% of nothing is still nothing.

    If you give the parent div a height, then the 100% will take effect.

    As seen here: http://jsfiddle.net/4JgA4/115/

    First to set height
    Why don't get the 100%

提交回复
热议问题