由于我的网站是完全响应式的,所以我需要根据每行调整div的大小,而不是将所有的设置为一个高度。我正在使用以下修改后的代码来设置容器内所有div的高度:$.fn.eqHeights=function(){varel=$(this);if(el.length>0&&!el.data('eqHeights')){$(window).bind('resize.eqHeights',function(){el.eqHeights();});el.data('eqHeights',true);}returnel.each(function(){varcurTop=0;varcurHighest=0