一般情况下,只需要给datagrid加上 fit="true" 就行了,

如果在datagrid的外层有一层div ,那么就要给div加上class="easyui-panel" ,同时加上 fit="true";

如果一个panel中有2个datagrid,这个时候就需要使用layout了,具体是这样的:

<div class="easyui-layout" style="width:700px;height:350px;">
        <div data-options="region:'north'" style="height:50px">
  ...这里写你的datagrid
</div>
        <div data-options="region:'center',split:true" style="height:50px;">
  ...这里写你的datagrid
</div>
</div>

 

 

相关文章:

  • 2021-05-22
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2021-10-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案