| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <!doctype html>
- <html lang="">
- <head>
- <meta charset="UTF-8" />
- <link rel="icon" href="/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>博物中国</title>
- <style>
- html,
- body {
- height: 100%;
- margin: 0;
- }
- .app-frame-shell {
- box-sizing: border-box;
- /* 大写 PX:避免 postcss-px-to-viewport 把壳层宽度换算成 vw */
- max-width: 640PX;
- height: 100%;
- min-height: 100%;
- margin: 0 auto;
- }
- .app-frame-shell iframe {
- display: block;
- border: 0;
- width: 100%;
- height: 100%;
- vertical-align: top;
- }
- </style>
- </head>
- <body>
- <div class="app-frame-shell">
- <iframe id="app-frame" title="博物中国"></iframe>
- </div>
- <script>
- (function () {
- var iframe = document.getElementById("app-frame");
- var hash = window.location.hash;
- if (!hash || hash === "#") {
- hash = "#/";
- }
- iframe.src = "./app.html" + hash;
- })();
- </script>
- </body>
- </html>
|