index.html 999 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <title>天纵物流</title>
  7. <style>
  8. *{margin: 0px;padding: 0px;}
  9. body{
  10. background: #f6f6f6;
  11. }
  12. </style>
  13. </head>
  14. <body>
  15. <div id="app"></div>
  16. <!-- built files will be auto injected -->
  17. </body>
  18. </html>
  19. <script>
  20. (function(doc, win) {
  21. var docEl = doc.documentElement,
  22. resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
  23. recalc = function() {
  24. var clientWidth = docEl.clientWidth;
  25. if (clientWidth >= 750) {
  26. docEl.style.fontSize = 100 + 'px';
  27. } else {
  28. docEl.style.fontSize = 20 * (clientWidth / 150) + 'px';
  29. };
  30. };
  31. if (!doc.addEventListener) return;
  32. win.addEventListener(resizeEvt, recalc, false);
  33. doc.addEventListener('DOMContentLoaded', recalc, false);
  34. })(document, window);
  35. </script>