0
我试图获取父容器高度,然后将其应用于子容器内,其中的最终结果是对窗口大小进行响应,并且禁用此功能下面的窗口大小768px通过获取父容器高度并将其应用于子元素来设置相等的盒子高度
请参阅的jsfiddle:http://jsfiddle.net/8vks5ubj/9/embedded/result/
jQuery('.common-height').each(function(){
var highestBox = 0;
jQuery('.center', this).each(function(){
if($(this).outerHeight() > highestBox)
highestBox = jQuery(this).outerHeight();
});
jQuery('.center',this).outerHeight(highestBox);
});
会很感激的任何帮助。
感谢