fluid.html 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Fluid 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>Fluid Accordion</h2>
  14. <p>This example shows how to set the width of accordion to a percentage of its parent container.</p>
  15. <div style="margin:20px 0 10px 0;"></div>
  16. <div class="easyui-accordion" style="width:100%;height:180px;">
  17. <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
  18. <p>width: 100%</p>
  19. </div>
  20. <div title="Help" data-options="iconCls:'icon-help',href:'_content.html'" style="padding:10px;">
  21. </div>
  22. </div>
  23. <div style="margin:20px 0 10px 0;"></div>
  24. <div class="easyui-accordion" style="width:50%;height:180px;">
  25. <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">
  26. <p>width: 50%</p>
  27. </div>
  28. <div title="Help" data-options="iconCls:'icon-help',href:'_content.html'" style="padding:10px;">
  29. </div>
  30. </div>
  31. </body>
  32. </html>