瀏覽代碼

需要页面定位

xiuwei 1 年之前
父節點
當前提交
2c98f8753c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/views/Login/Login.vue

+ 4 - 1
src/views/Login/Login.vue

@@ -1,7 +1,7 @@
 <template>
     <div class="login">
         <div class="tab">
-            <div style="width: 100%;text-align: center">
+            <div style="width: 100%;text-align: center;position: absolute;top:0 ;left: 0">
                 <div class="tab-wrapper">
                     <img :class="flag1? 'active1':'active2'" alt=""
                          src="./img/img_2.png" style="display: inline-block;position: absolute;top:50px;">
@@ -213,6 +213,9 @@ export default {
 
 .button-div {
   text-align: left;
+  position: absolute;
+  top: 50%;
+  left: 3%;
 }
 
 .input-div {