如何使div与两个div的高度相同

时间:2014-02-25 21:41:52

标签: jquery

我正在尝试将侧边栏div设置为与两个div相同的高度。 这两个div是顶部横幅图像,下面是主页面内容(左侧浮动)。

以下是我的尝试:

    jQuery(document).ready(function(){
jQuery("#zeroey").height( jQuery("#page").height() + jQuery("#page-header-img").height() );
});

然而,这使得侧边栏几乎是所有内容的两倍。 我已经尝试将两个div包装成一个conatiner,但是高度仍然接近1/3 ..

请参阅http://deset.me/avenir/

对此有更简单的解决方案吗?

0 个答案:

没有答案