complex.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Complex Layout - jQuery EasyUI Demo</title>
  6. <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  7. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  8. <link rel="stylesheet" type="text/css" href="../demo.css">
  9. <script type="text/javascript" src="../../jquery.min.js"></script>
  10. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  11. </head>
  12. <body>
  13. <h2>Complex Layout</h2>
  14. <p>This sample shows how to create a complex layout.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-layout" style="width:700px;height:350px;">
  17. <div data-options="region:'north'" style="height:50px"></div>
  18. <div data-options="region:'south',split:true" style="height:50px;"></div>
  19. <div data-options="region:'east',split:true" title="East" style="width:180px;">
  20. <ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true,dnd:true"></ul>
  21. </div>
  22. <div data-options="region:'west',split:true" title="West" style="width:100px;">
  23. <div class="easyui-accordion" data-options="fit:true,border:false">
  24. <div title="Title1" style="padding:10px;">
  25. content1
  26. </div>
  27. <div title="Title2" data-options="selected:true" style="padding:10px;">
  28. content2
  29. </div>
  30. <div title="Title3" style="padding:10px">
  31. content3
  32. </div>
  33. </div>
  34. </div>
  35. <div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'">
  36. <div class="easyui-tabs" data-options="fit:true,border:false,plain:true">
  37. <div title="About" data-options="href:'_content.html'" style="padding:10px"></div>
  38. <div title="DataGrid" style="padding:5px">
  39. <table class="easyui-datagrid"
  40. data-options="url:'datagrid_data1.json',method:'get',singleSelect:true,fit:true,fitColumns:true">
  41. <thead>
  42. <tr>
  43. <th data-options="field:'itemid'" width="80">Item ID</th>
  44. <th data-options="field:'productid'" width="100">Product ID</th>
  45. <th data-options="field:'listprice',align:'right'" width="80">List Price</th>
  46. <th data-options="field:'unitcost',align:'right'" width="80">Unit Cost</th>
  47. <th data-options="field:'attr1'" width="150">Attribute</th>
  48. <th data-options="field:'status',align:'center'" width="50">Status</th>
  49. </tr>
  50. </thead>
  51. </table>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </body>
  57. </html>