basic.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <div class="demo-info">
  15. <div class="demo-tip icon-tip"></div>
  16. <div>Click on panel header to show its content.</div>
  17. </div>
  18. <div style="margin:10px 0;"></div>
  19. <div class="easyui-accordion" style="width:500px;height:300px;">
  20. <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
  21. <h3 style="color:#0099FF;">Accordion for jQuery</h3>
  22. <p>Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.</p>
  23. </div>
  24. <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;">
  25. <p>The accordion allows you to provide multiple panels and display one 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>
  26. </div>
  27. <div title="TreeMenu" data-options="iconCls:'icon-search'" style="padding:10px;">
  28. <ul class="easyui-tree">
  29. <li>
  30. <span>Foods</span>
  31. <ul>
  32. <li>
  33. <span>Fruits</span>
  34. <ul>
  35. <li>apple</li>
  36. <li>orange</li>
  37. </ul>
  38. </li>
  39. <li>
  40. <span>Vegetables</span>
  41. <ul>
  42. <li>tomato</li>
  43. <li>carrot</li>
  44. <li>cabbage</li>
  45. <li>potato</li>
  46. <li>lettuce</li>
  47. </ul>
  48. </li>
  49. </ul>
  50. </li>
  51. </ul>
  52. </div>
  53. </div>
  54. </body>
  55. </html>