Jelajahi Sumber

【修复】适配屏幕问题

程志平 4 tahun lalu
induk
melakukan
302f1e7bfc
2 mengubah file dengan 5 tambahan dan 4 penghapusan
  1. 3 2
      src/components/index/Index.css
  2. 2 2
      src/components/index/Index.vue

+ 3 - 2
src/components/index/Index.css

@@ -189,8 +189,9 @@
 .right-main {
 	margin: 20px 1px 0 20px;
 	padding: 20px 63px 28px 50px;
-	width: 1540px;
-	height: 790px;
+	width: calc(100% - 21px);
+	/* height: 790px; */
+	height: calc(100vh - 90px - 40px);
 	background: #FFFFFF;
 }
 

+ 2 - 2
src/components/index/Index.vue

@@ -68,8 +68,8 @@
 					</div>
 				</el-col>
 			</el-row>
-			<el-row class="right-main">
-				<el-col :span="24">
+			<el-row>
+				<el-col :span="24" class="right-main">
 					<router-view></router-view>
 				</el-col>
 			</el-row>