basic.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic Accordion - 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>Basic Accordion</h2>
  14. <p>Click on panel header to show its content.</p>
  15. <div style="margin:20px 0 10px 0;"></div>
  16. <div class="easyui-accordion" style="width:500px;height:300px;">
  17. <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
  18. <h3 style="color:#0099FF;">Accordion for jQuery</h3>
  19. <p>Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.</p>
  20. </div>
  21. <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;">
  22. <p>The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.</p>
  23. </div>
  24. <div title="TreeMenu" data-options="iconCls:'icon-search'" style="padding:10px 0;">
  25. <ul class="easyui-tree">
  26. <li>
  27. <span>Foods</span>
  28. <ul>
  29. <li>
  30. <span>Fruits</span>
  31. <ul>
  32. <li>apple</li>
  33. <li>orange</li>
  34. </ul>
  35. </li>
  36. <li>
  37. <span>Vegetables</span>
  38. <ul>
  39. <li>tomato</li>
  40. <li>carrot</li>
  41. <li>cabbage</li>
  42. <li>potato</li>
  43. <li>lettuce</li>
  44. </ul>
  45. </li>
  46. </ul>
  47. </li>
  48. </ul>
  49. </div>
  50. </div>
  51. </body>
  52. </html>