$(window).resize(function () {//风电月表格自适应高度 var handHeight =$(".tree-handler").height() $(".tree-content").css("max-height",handHeight)});