basic.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic MenuButton - 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 MenuButton</h2>
  14. <p>Move mouse over the button to drop down menu.</p>
  15. <div style="margin:20px 0;"></div>
  16. <div class="easyui-panel" style="padding:5px;">
  17. <a href="#" class="easyui-linkbutton" data-options="plain:true">Home</a>
  18. <a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
  19. <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">Help</a>
  20. <a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">About</a>
  21. </div>
  22. <div id="mm1" style="width:150px;">
  23. <div data-options="iconCls:'icon-undo'">Undo</div>
  24. <div data-options="iconCls:'icon-redo'">Redo</div>
  25. <div class="menu-sep"></div>
  26. <div>Cut</div>
  27. <div>Copy</div>
  28. <div>Paste</div>
  29. <div class="menu-sep"></div>
  30. <div>
  31. <span>Toolbar</span>
  32. <div>
  33. <div>Address</div>
  34. <div>Link</div>
  35. <div>Navigation Toolbar</div>
  36. <div>Bookmark Toolbar</div>
  37. <div class="menu-sep"></div>
  38. <div>New Toolbar...</div>
  39. </div>
  40. </div>
  41. <div data-options="iconCls:'icon-remove'">Delete</div>
  42. <div>Select All</div>
  43. </div>
  44. <div id="mm2" style="width:100px;">
  45. <div>Help</div>
  46. <div>Update</div>
  47. <div>About</div>
  48. </div>
  49. <div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
  50. <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
  51. <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
  52. </div>
  53. </body>
  54. </html>