style.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Tabs Style - 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>Tabs Style</h2>
  14. <p>Click the options below to change the tabs style.</p>
  15. <div style="margin:20px 0;">
  16. <input id="plain" type="checkbox" onclick="setTabs()"><span>plain</span><br>
  17. <input id="narrow" type="checkbox" onclick="setTabs()"><span>narrow</span><br>
  18. <input id="pill" type="checkbox" onclick="setTabs()"><span>pill</span><br>
  19. <input id="justified" type="checkbox" onclick="setTabs()"><span>justified</span>
  20. </div>
  21. <div id="tt" class="easyui-tabs" style="width:700px;height:250px">
  22. <div title="About" style="padding:10px">
  23. <p style="font-size:14px">jQuery EasyUI framework helps you build your web pages easily.</p>
  24. <ul>
  25. <li>easyui is a collection of user-interface plugin based on jQuery.</li>
  26. <li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
  27. <li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.</li>
  28. <li>complete framework for HTML5 web page.</li>
  29. <li>easyui save your time and scales while developing your products.</li>
  30. <li>easyui is very easy but powerful.</li>
  31. </ul>
  32. </div>
  33. <div title="My Documents" style="padding:10px">
  34. <ul class="easyui-tree" data-options="url:'tree_data1.json',method:'get',animate:true"></ul>
  35. </div>
  36. <div title="Help" data-options="iconCls:'icon-help',closable:true" style="padding:10px">
  37. This is the help content.
  38. </div>
  39. </div>
  40. <script type="text/javascript">
  41. function setTabs(){
  42. $('#tt').tabs({
  43. plain: $('#plain').is(':checked'),
  44. narrow: $('#narrow').is(':checked'),
  45. pill: $('#pill').is(':checked'),
  46. justified: $('#justified').is(':checked')
  47. })
  48. }
  49. </script>
  50. </body>
  51. </html>