南北的style 一般只设置宽width 东西的style一般只设置高height 示例: <body class="easyui-layout" data-options="fit:true"> //自适应 <div id='toolbar' class='easyui-panel' data-options="region:'north'" style=" background-color: #E0ECFF; height:34px; border-width:1px"></div> <div id='leftpanel' class='easyui-panel' data-options="region:'west'" style="width:300px; border-width:1px"> <div id="myTree1" class="easyui-tree"></div> </div> <div id='centerpanel' data-options="region:'center'" style="padding: 2px 0px 0px 2px; "> </div> </body>
|