1. 程式人生 > >easyui easyui-layout 調整佈局大小

easyui easyui-layout 調整佈局大小

<body class="easyui-layout" >

<div id="p2" data-options="region:'north',border:false" style="overflow: hidden;padding:0px">

<tr id="trType" style="height:130px;" @*style="display:none;"*@>

<div id="p1" data-options="region:'center',border:false" style="width:100%;height:100%; overflow: hidden;padding: 0px; background: #eee;">

     


調整p2高度。

js: $('#trType').hide();$('#p2').panel({height:150});$('body').layout('resize');