homepage3.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <script src="lib/esl.js"></script>
  5. <script src="lib/config.js"></script>
  6. <script src="./lib/jquery.min.js"></script>
  7. </head>
  8. <body>
  9. <style>
  10. html,
  11. body {
  12. padding: 0;
  13. margin: 0;
  14. }
  15. .ch-main {
  16. position: relative;
  17. margin-top: 100px;
  18. margin-left: 100px;
  19. }
  20. .ch-pc-chart {
  21. width: 590px;
  22. height: 373px;
  23. border-radius: 12px;
  24. box-shadow: 6px 6px 22px #ccc;
  25. }
  26. .ch-mobile-box {
  27. position: absolute;
  28. left: 433px;
  29. top: -60px;
  30. width: 259px;
  31. height: 484px;
  32. z-index: 300;
  33. user-select: none;
  34. }
  35. .ch-mobile-content {
  36. position: absolute;
  37. overflow: hidden;
  38. width: 199px;
  39. height: 332px;
  40. border-bottom-left-radius: 5px;
  41. border-bottom-right-radius: 5px;
  42. left: 463px;
  43. top: 18px;
  44. background: #333;
  45. z-index: 300;
  46. padding: 0;
  47. margin: 0;
  48. }
  49. .ch-mobile-chart {
  50. width: 200%;
  51. height: 200%;
  52. transform-origin:0 0;
  53. transform:scale(0.5);
  54. padding: 0;
  55. margin: 0;
  56. }
  57. </style>
  58. <div class="ch-main">
  59. <div class="ch-pc-chart"></div>
  60. <img class="ch-mobile-box" src="./data/iphone.png"/>
  61. <div class="ch-mobile-content">
  62. <div class="ch-mobile-chart"></div>
  63. </div>
  64. </div>
  65. <script src="./homepage3.js"></script>
  66. <script type="text/javascript">
  67. require([
  68. 'echarts'
  69. // 'echarts/chart/bar',
  70. // 'echarts/chart/line',
  71. // 'echarts/component/legend',
  72. // 'echarts/component/visualMap',
  73. // 'echarts/component/dataZoom',
  74. // 'echarts/component/toolbox',
  75. // 'echarts/component/brush',
  76. // 'echarts/component/grid',
  77. // 'echarts/component/tooltip'
  78. ], function (echarts) {
  79. renderHomepage3Demo(echarts);
  80. });
  81. </script>
  82. </body>
  83. </html>