Commit cf1bb50b331bba36a5a403f7f844790df32de0ae
1 parent
f75312de
登录页样式优化
Signed-off-by: TanYibin <5491541@qq.com>
Showing
1 changed file
with
13 additions
and
10 deletions
ant-design-vue-jeecg/src/components/layouts/UserLayoutLogin.vue
... | ... | @@ -347,7 +347,7 @@ export default { |
347 | 347 | height: 100%; /* 使 div 占满父容器高度 */ |
348 | 348 | } |
349 | 349 | #logo { |
350 | - height: 10%; | |
350 | + height: 8%; | |
351 | 351 | width: 100%; |
352 | 352 | //background-color: red; |
353 | 353 | //margin-left: 150px; |
... | ... | @@ -357,7 +357,7 @@ export default { |
357 | 357 | // margin-top: 0; |
358 | 358 | } |
359 | 359 | #backgroundImg { |
360 | - height: 80%; | |
360 | + height: 82%; | |
361 | 361 | display: flex; |
362 | 362 | justify-content: center; |
363 | 363 | align-items: center; |
... | ... | @@ -378,17 +378,20 @@ export default { |
378 | 378 | padding: 10px; /* 添加内边距 */ |
379 | 379 | } |
380 | 380 | #logoImg { |
381 | - width: 22%; | |
382 | - height: 100%; | |
381 | + width: 10vw; | |
382 | + margin-left: 2vw; | |
383 | + margin-right: 0.5vw; | |
384 | + // height: 100%; | |
383 | 385 | float: right; |
384 | 386 | position: relative; |
387 | + align-content: center; | |
385 | 388 | //background-color: yellow; |
386 | 389 | .imge { |
387 | - width: 83%; | |
388 | - height: 30%; | |
389 | - position: absolute; | |
390 | + width: 9.5vw; | |
391 | + height: 1.5vw; | |
392 | + // position: absolute; | |
390 | 393 | right: 5%; /* 水平居右 */ |
391 | - top: 20%; /* 从顶部偏移50% */ | |
394 | + // top: 20%; /* 从顶部偏移50% */ | |
392 | 395 | // transform: translateY(-50%); /* 向上移动自身高度的50%,实现垂直居中 */ |
393 | 396 | //object-fit: contain; |
394 | 397 | //top: 39%; |
... | ... | @@ -398,9 +401,9 @@ export default { |
398 | 401 | } |
399 | 402 | } |
400 | 403 | #text { |
401 | - height: 69%; | |
404 | + // height: 69%; | |
402 | 405 | width: 100%; |
403 | - font-size: 1.1vw; | |
406 | + font-size: 1.2vw; | |
404 | 407 | align-content: center; |
405 | 408 | color: #333333; |
406 | 409 | //margin-left: 5px; |
... | ... |