easy ui easyui-datagrid 高度自動設置

data-options="rownumbers:true,singleSelect:false,selectOnCheck:false,checkOnSelect:false,toolbar:'#tb',footer:'#ft',
collapsible:true,
pagination:true,
[color=red]fit:true,[/color]
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 就可以了
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章