index.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html lang="ch-zh">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7. <link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon" />
  8. <link rel="stylesheet" href="./css/reset.css" />
  9. <link rel="stylesheet" href="./css/main.css" />
  10. <title>-</title>
  11. </head>
  12. <style>
  13. .myTitle {
  14. letter-spacing: 4px;
  15. margin: 0 auto;
  16. color: #fff;
  17. display: flex;
  18. justify-content: center;
  19. align-items: center;
  20. width: 270px;
  21. height: 50px;
  22. background: url("./img/titleBac.png") no-repeat center;
  23. background-size: 100% 100%;
  24. }
  25. .options {
  26. display: flex;
  27. justify-content: space-between;
  28. margin: 20px auto;
  29. width: 300px;
  30. }
  31. .btn {
  32. width: 120px;
  33. height: 35px;
  34. border-radius: 10px;
  35. box-shadow: none;
  36. border: 1px solid #9d917f;
  37. background: #ffffff21;
  38. color: white;
  39. font-size: 14px;
  40. }
  41. .active {
  42. background: #ffffff21;
  43. }
  44. .containers {
  45. padding-top: 40px;
  46. width: 100vw;
  47. max-width: 1080px;
  48. /* height: 100vh; */
  49. background-color: #285b5e;
  50. }
  51. .pageBox {
  52. position: fixed;
  53. z-index: 99;
  54. right: 20px;
  55. top: 10px;
  56. display: flex;
  57. }
  58. .pageBox > div {
  59. width: 24px;
  60. height: 24px;
  61. background-color: #fff;
  62. cursor: pointer;
  63. margin-left: 15px;
  64. line-height: 24px;
  65. text-align: center;
  66. border-radius: 5px;
  67. border: 1px solid #ccc;
  68. }
  69. .pageBox > div:hover {
  70. background-color: #285b5e;
  71. color: #fff;
  72. }
  73. .pageBox .active {
  74. pointer-events: none;
  75. background-color: #285b5e;
  76. color: #fff;
  77. }
  78. </style>
  79. <body>
  80. <div class="containers">
  81. <div class="myTitle"></div>
  82. <div class="options">
  83. <!-- 3d -->
  84. <button class="btn" id="3dbtn">三维文物</button>
  85. <!-- 2d -->
  86. <button class="btn" id="2dbtn">二维文物</button>
  87. </div>
  88. <ul class="con"></ul>
  89. <!-- 分页指示器 -->
  90. <!-- <div class="pageBox">
  91. <div class="active">1</div>
  92. <div>2</div>
  93. <div>3</div>
  94. </div> -->
  95. </div>
  96. <script src="./info.js"></script>
  97. <script src="js/jquery.js"></script>
  98. <script src="js/ui.js"></script>
  99. <script>
  100. document.title = titleInfo;
  101. $(".myTitle").text(titleInfo);
  102. </script>
  103. </body>
  104. </html>