2013-08-02 71 views

回答

0
html, body { height:100%; } 
#one { height:some%; } 
#two { height:some%; } 

CSS - 沒有需要在這裏(除非你想以後更改高度)JS。

0

只需使用$(this).parent().height();爲每div

+0

應該在哪裏調用? – Uooo

0

設置高度和寬度%。它將採用父div的高度和寬度。