basic.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Basic SplitButton - 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 SplitButton</h2>
  14. <p>Move mouse over the arrow area of 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-splitbutton" data-options="menu:'#mm1',iconCls:'icon-edit'">Edit</a>
  19. <a href="#" class="easyui-splitbutton" data-options="menu:'#mm2',iconCls:'icon-ok'">Ok</a>
  20. <a href="#" class="easyui-menubutton" data-options="menu:'#mm3',iconCls:'icon-help'">Help</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 data-options="iconCls:'icon-ok'">Ok</div>
  46. <div data-options="iconCls:'icon-cancel'">Cancel</div>
  47. </div>
  48. <div id="mm3" style="width:150px;">
  49. <div>Help</div>
  50. <div>Update</div>
  51. <div>
  52. <span>About</span>
  53. <div class="menu-content" style="padding:10px;text-align:left">
  54. <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
  55. <p style="font-size:14px;color:#444">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
  56. </div>
  57. </div>
  58. </div>
  59. </body>
  60. </html>