fengchuanyu 2 weeks ago
parent
commit
6a55a06312
1 changed files with 15 additions and 0 deletions
  1. 15 0
      2_CSS/练习14_小米登录页面.html

+ 15 - 0
2_CSS/练习14_小米登录页面.html

@@ -36,6 +36,7 @@
             width: calc(100% - 375px);
             height: 100vh;
             background-color: #f5f5f5;
+            position: relative;
         }
         .login-content .nav{
             padding: 20px;
@@ -106,6 +107,20 @@
             line-height: 50px;
             text-align: center;
         }
+        /* 登录框 start */
+        .login-content .login-box{
+            width: 450px;
+            height: 570px;
+            padding: 40px 45px;
+            box-sizing: border-box;
+            background-color: #999;
+            position: absolute;
+            top:50%;
+            left: 50%;
+            margin-top: -285px;
+            margin-left: -225px;
+        }
+        /* 登录框 end */
         /* 登录内容区域 end */
     </style>
 </head>