index.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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">
  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. .containers {
  26. padding-top: 40px;
  27. width: 100vw;
  28. max-width: 1080px;
  29. /* height: 100vh; */
  30. background-color: #285b5e;
  31. position: relative;
  32. }
  33. .none {
  34. opacity: 0;
  35. pointer-events: none;
  36. letter-spacing: 4px;
  37. position: absolute;
  38. top: 0;
  39. left: 0;
  40. width: 100%;
  41. height: 100%;
  42. font-size: 30px;
  43. color: #fff;
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. }
  48. .search {
  49. width: 280px;
  50. height: 30px;
  51. position: absolute;
  52. top: 50px;
  53. right: 20px;
  54. display: flex;
  55. }
  56. .search input {
  57. padding: 0 10px;
  58. border: none;
  59. width: 200px;
  60. }
  61. input:focus {
  62. outline: none;
  63. }
  64. .searImg{
  65. cursor: pointer;
  66. width: 30px;
  67. height: 30px;
  68. background: url('./images/searImg.png') #fff no-repeat center;
  69. background-size: 20px 20px;
  70. }
  71. </style>
  72. <body>
  73. <div class="containers">
  74. <div class="myTitle">河南博物院</div>
  75. <ul class="con"> </ul>
  76. <div class="none">暂无文物...</div>
  77. <div class="search">
  78. <input class="myInp" type="text" placeholder="请输入文物名称搜索" />
  79. <div class="searImg"></div>
  80. </div>
  81. </div>
  82. <script src="js/jquery.js"></script>
  83. <script src="js/ui.js"></script>
  84. </body>
  85. </html>