EasyUI设置Layout自适应浏览器宽度和高度
//设置自适应浏览器宽度和高度 function setLayoutHeight() { var height = $(window).height() - 20; $("#main_layout").attr("style", "width:100%;height:" + height + "px"); $("#main_layout").layout("resize", { width: "100%", height: height + "px" }); }