Sin descripción

index.html 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title></title>
  8. <link rel="stylesheet" href="../common/reset.css">
  9. <link rel="stylesheet" href="index.css">
  10. <script src="../common/jquery-2.1.0.js"></script>
  11. <script>
  12. var viewport = document.querySelector("meta[name=viewport]")
  13. if (window.devicePixelRatio == 1) {
  14. viewport.setAttribute('content', 'width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no')
  15. }
  16. if (window.devicePixelRatio == 2) {
  17. viewport.setAttribute('content', 'width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5, user-scalable=no')
  18. }
  19. if (window.devicePixelRatio == 3) {
  20. viewport.setAttribute('content', 'width=device-width, initial-scale=0.333333333, maximum-scale=0.333333333, minimum-scale=0.333333333, user-scalable=no')
  21. }
  22. document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+"px";
  23. window.onresize=function(){
  24. document.documentElement.style.fontSize=document.documentElement.clientWidth/375*100+"px";
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <div class="container">
  30. <img class="bannerImg" src="./img/banner.png"/>
  31. <ul class="shopList">
  32. <div class="line"></div>
  33. </ul>
  34. </div>
  35. <div class="alert-info" style="display: none;">
  36. <p></p>
  37. </div>
  38. <!-- loading -->
  39. <div class="loading">
  40. <img src="../common/loading.gif" />
  41. </div>
  42. </body>
  43. </html>
  44. <script src="index.js"></script>