2013-08-02 72 views

回答

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

CSS - 没有需要在这里(除非你想以后更改高度)JS。

0

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

+0

应该在哪里调用? – Uooo

0

设置高度和宽度%。它将采用父div的高度和宽度。