nav.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <title>Navigation Panel - jQuery EasyUI Mobile Demo</title>
  7. <link rel="stylesheet" type="text/css" href="../../themes/metro/easyui.css">
  8. <link rel="stylesheet" type="text/css" href="../../themes/mobile.css">
  9. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  10. <script type="text/javascript" src="../../jquery.min.js"></script>
  11. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  12. <script type="text/javascript" src="../../jquery.easyui.mobile.js"></script>
  13. </head>
  14. <body>
  15. <div class="easyui-navpanel">
  16. <header>
  17. <div class="m-toolbar">
  18. <div class="m-title">Navigation</div>
  19. </div>
  20. </header>
  21. <div style="margin:50px 0 0;text-align:center">
  22. <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px;height:30px" onclick="$.mobile.go('#p2')">Goto Panel2</a>
  23. </div>
  24. </div>
  25. <div id="p2" class="easyui-navpanel">
  26. <header>
  27. <div class="m-toolbar">
  28. <div class="m-title">Panel2</div>
  29. <div class="m-left">
  30. <a href="#" class="easyui-linkbutton m-back" data-options="plain:true,outline:true,back:true">Back</a>
  31. </div>
  32. </div>
  33. </header>
  34. <div style="margin:50px 0 0;text-align:center">
  35. <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$.mobile.back()">Go Back</a>
  36. </div>
  37. </div>
  38. </body>
  39. </html>