nestedtabs.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Nested Tabs - 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>Nested Tabs</h2>
  14. <p>The tab panel can contain sub tabs or other components.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-tabs" data-options="tools:'#tab-tools'" style="width:700px;height:250px">
  17. <div title="Sub Tabs" style="padding:10px;">
  18. <div class="easyui-tabs" data-options="fit:true,plain:true">
  19. <div title="Title1" style="padding:10px;">Content 1</div>
  20. <div title="Title2" style="padding:10px;">Content 2</div>
  21. <div title="Title3" style="padding:10px;">Content 3</div>
  22. </div>
  23. </div>
  24. <div title="Ajax" data-options="href:'_content.html',closable:true" style="padding:10px"></div>
  25. <div title="Iframe" data-options="closable:true" style="overflow:hidden">
  26. <iframe scrolling="yes" frameborder="0" src="http://www.jeasyui.com/forum/index.php" style="width:100%;height:100%;"></iframe>
  27. </div>
  28. <div title="DataGrid" data-options="closable:true" style="padding:10px">
  29. <table class="easyui-datagrid" data-options="fit:true,singleSelect:true,rownumbers:true">
  30. <thead>
  31. <tr>
  32. <th data-options="field:'f1',width:100">Title1</th>
  33. <th data-options="field:'f2',width:100">Title2</th>
  34. <th data-options="field:'f3',width:100">Title3</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr>
  39. <td>d11</td>
  40. <td>d12</td>
  41. <td>d13</td>
  42. </tr>
  43. <tr>
  44. <td>d21</td>
  45. <td>d22</td>
  46. <td>d23</td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. </body>
  53. </html>