所有内容框的高度相等。加载时工作正常,但无法调整大小 window

Equal Height for all content box. Working fine on load, but not working on resizing window

调整浏览器大小时遇到​​问题。 equal_height 无法调整浏览器大小的功能

$(document).ready(function(){  
  function equal_height(){  
    var secHeight = $(".innter-con").map(function(){
      return $(this).height();
    });
    maxHeight=Math.max.apply(null, secHeight);
    $(".innter-con").height(maxHeight);
  }

  equal_height();

  $(window).resize(function(){
    equal_height(); 
  });
});

这是修改后的代码,它在加载和浏览器调整大小时都有效:https://jsfiddle.net/maheshv13/0omv6z0e/2/

function equalHeight(){
        $(".equalHeight").each(function(){
        var findHeight = $(this).height();
        var maxHeight = Math.max.apply(Math, $(this).map(function(){
        $(this).height('100%');
        return $(this).height();
    }));
    $(".equalHeight").height(maxHeight);
    });
    }
    $(window).resize(function(){
        equalHeight();
    }); 
        equalHeight();