`
jeelee
  • 浏览: 628800 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

easy ui easyui-datagrid 高度自动设置

阅读更多

<table id="dg" class="easyui-datagrid" style="width:100%"
data-options="rownumbers:true,singleSelect:false,selectOnCheck:false,checkOnSelect:false,toolbar:'#tb',footer:'#ft',
collapsible:true,
pagination:true,
fit:true,
url:''">
<thead>
<tr>
<th data-options="field:'ck',checkbox:true,width:80"></th>
<th data-options="field:'opt',title:'操作',width:90,align:'center'"></th>
<th data-options="field:'systemId'">System ID</th>
<th data-options="field:'systemName'">System Name</th>
<th data-options="field:'enableFlag',width:60,align:'center'">Enable</th>
<th data-options="field:'systemFlag',width:60,align:'center'">System Flag</th>
<th data-options="field:'createdUserName',align:'center'">Created User</th>
<th data-options="field:'creationDate',align:'center'">Creation Date</th>
<th data-options="field:'lastUpdateUserName',align:'center'">Last Update User</th>
<th data-options="field:'lastUpdateDate',align:'center'">Last Update Date</th>
</tr>
</thead>
</table>

datagrid加上 fit:true 就可以了
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics