inline.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Inline Menu - 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>Inline Menu</h2>
  14. <p>The inline menu stays inside its parent container.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" title="Menu" style="width:150px;">
  17. <div class="easyui-menu" data-options="inline:true" style="width:100%">
  18. <div onclick="javascript:alert('new')">New</div>
  19. <div>
  20. <span>Open</span>
  21. <div style="width:150px;">
  22. <div><b>Word</b></div>
  23. <div>Excel</div>
  24. <div>PowerPoint</div>
  25. <div>
  26. <span>M1</span>
  27. <div style="width:120px;">
  28. <div>sub1</div>
  29. <div>sub2</div>
  30. <div>
  31. <span>Sub</span>
  32. <div style="width:80px;">
  33. <div onclick="javascript:alert('sub21')">sub21</div>
  34. <div>sub22</div>
  35. <div>sub23</div>
  36. </div>
  37. </div>
  38. <div>sub3</div>
  39. </div>
  40. </div>
  41. <div>
  42. <span>Window Demos</span>
  43. <div style="width:120px;">
  44. <div data-options="href:'window.html'">Window</div>
  45. <div data-options="href:'dialog.html'">Dialog</div>
  46. <div><a href="http://www.jeasyui.com" target="_blank">EasyUI</a></div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. <div data-options="iconCls:'icon-save'">Save</div>
  52. <div data-options="iconCls:'icon-print',disabled:true">Print</div>
  53. <div class="menu-sep"></div>
  54. <div>Exit</div>
  55. </div>
  56. </div>
  57. </body>
  58. </html>