nestedtabs.html 2.0 KB

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