index.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!doctype html>
  2. <html lang="">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" href="/favicon.ico" />
  6. <meta
  7. name="viewport"
  8. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
  9. />
  10. <meta name="screen-orientation" content="landscape" />
  11. <meta name="x5-orientation" content="landscape" />
  12. <meta name="apple-mobile-web-app-capable" content="yes" />
  13. <title>绥芬河市中东铁路</title>
  14. <style>
  15. * {
  16. margin: 0;
  17. padding: 0;
  18. box-sizing: border-box;
  19. }
  20. html,
  21. body {
  22. width: 100%;
  23. height: 100%;
  24. overflow: hidden;
  25. background: #000;
  26. touch-action: manipulation;
  27. }
  28. :root {
  29. --lw: 100vw;
  30. --lh: 100vh;
  31. }
  32. #app-container {
  33. position: relative;
  34. width: 100vw;
  35. height: 100vh;
  36. overflow: hidden;
  37. transform-origin: center center;
  38. }
  39. #app-container.is-portrait-rotated {
  40. position: fixed;
  41. top: 50%;
  42. left: 50%;
  43. transform: translate(-50%, -50%) rotate(90deg);
  44. overflow: hidden;
  45. }
  46. #app {
  47. width: 100%;
  48. height: 100%;
  49. position: relative;
  50. overflow: hidden;
  51. }
  52. </style>
  53. </head>
  54. <body>
  55. <div id="app-container">
  56. <div id="app"></div>
  57. </div>
  58. <script type="module" src="/src/main.js"></script>
  59. </body>
  60. </html>