隐藏

Tab Position

发布:2015/8/21 14:17:21作者:管理员 来源:本站 浏览次数:1677

Click the 'position' drop-down list and select an item to change the tab position.

Position:

jQuery EasyUI framework helps you build your web pages easily.

  • easyui is a collection of user-interface plugin based on jQuery.
  • easyui provides essential functionality for building modem, interactive, javascript applications.
  • using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
  • complete framework for HTML5 web page.
  • easyui save your time and scales while developing your products.
  • easyui is very easy but powerful.
源代码
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Tab Position - 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>Tab Position</h2>
  14. <p>Click the 'position' drop-down list and select an item to change the tab position.</p>
  15. <div style="margin:20px 0;">
  16. <span>Position:</span>
  17. <select onchange="$('#tt').tabs({tabPosition:this.value})">
  18. <option value="top">Top</option>
  19. <option value="bottom">Bottom</option>
  20. <option value="left">Left</option>
  21. <option value="right">Right</option>
  22. </select>
  23. </div>
  24. <div id="tt" class="easyui-tabs" style="width:700px;height:250px">
  25. <div title="About" style="padding:10px">
  26. <p style="font-size:14px">jQuery EasyUI framework helps you build your web pages easily.</p>
  27. <ul>
  28. <li>easyui is a collection of user-interface plugin based on jQuery.</li>
  29. <li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
  30. <li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.</li>
  31. <li>complete framework for HTML5 web page.</li>
  32. <li>easyui save your time and scales while developing your products.</li>
  33. <li>easyui is very easy but powerful.</li>
  34. </ul>
  35. </div>
  36. <div title="My Documents" style="padding:10px">
  37. <ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true"></ul>
  38. </div>
  39. <div title="Help" data-options="iconCls:'icon-help',closable:true" style="padding:10px">
  40. This is the help content.
  41. </div>
  42. </div>
  43.  
  44. </body>
  45. </html>