Browse Source

fix bg -K

Kyunghak 1 week ago
parent
commit
6f9ab6b949
1 changed files with 15 additions and 5 deletions
  1. 15 5
      index.html

+ 15 - 5
index.html

@@ -19,6 +19,9 @@
     <meta name="keywords" content="朴竞学" />
     <meta name="description" content="朴竞学" />
     <style>
+      body {
+        background-color: black;
+      }
       .bg {
         position: absolute;
         z-index: 1;
@@ -26,12 +29,18 @@
         left: 0;
         right: 0;
         bottom: 0;
-        background-image: url(http://static.wedding.kyunghak.com/haibao.png);
-        background-size: cover;
       }
-      .build {
+      .bg-img {
         position: absolute;
         z-index: 1;
+        top: 50%;
+        left: 50%;
+        width: 100%;
+        transform: translateX(-50%) translateY(-50%);
+      }
+      .build {
+        position: absolute;
+        z-index: 2;
         top: 0;
         left: 0;
         right: 0;
@@ -44,14 +53,15 @@
         margin: auto;
         font-size: 24px;
         color: #fff;
-        text-align: center;;
+        text-align: center;
       }
     </style>
   </head>
 
   <body>
     <div class="bg">
-      <div class="build">建设中...</div>
+      <img class="bg-img" src="http://static.wedding.kyunghak.com/haibao.png" />
     </div>
+    <div class="build">建设中...</div>
   </body>
 </html>