Commit a758251524e9c194bfabebd6bcedbdb4563419d8
1 parent
b05019aa
样式优化
Showing
2 changed files
with
7 additions
and
5 deletions
src/pages/index/index.less
| @@ -3,12 +3,14 @@ | @@ -3,12 +3,14 @@ | ||
| 3 | height: 100vh; | 3 | height: 100vh; |
| 4 | background: url("../../../static/img/background.jpg") no-repeat center top; | 4 | background: url("../../../static/img/background.jpg") no-repeat center top; |
| 5 | background-size: 100%; | 5 | background-size: 100%; |
| 6 | + overflow: hidden; | ||
| 6 | .btn_box { | 7 | .btn_box { |
| 7 | width: 670px; | 8 | width: 670px; |
| 8 | height: 570px; | 9 | height: 570px; |
| 9 | - position: fixed; | ||
| 10 | - bottom: 193px; | ||
| 11 | - left: 40px; | 10 | + //position: fixed; |
| 11 | + //bottom: 14s3px; | ||
| 12 | + //left: 40px; | ||
| 13 | + margin: 524px auto; | ||
| 12 | div:first-child { | 14 | div:first-child { |
| 13 | width: 100%; | 15 | width: 100%; |
| 14 | height: 260px; | 16 | height: 260px; |
src/pages/index/index.vue
| @@ -8,11 +8,11 @@ | @@ -8,11 +8,11 @@ | ||
| 8 | <div @click="link(2)" class="btn"> | 8 | <div @click="link(2)" class="btn"> |
| 9 | 9 | ||
| 10 | </div> | 10 | </div> |
| 11 | - </div> | ||
| 12 | - <div class="bottom_box"> | ||
| 13 | <div class="text"> | 11 | <div class="text"> |
| 14 | 12 | ||
| 15 | </div> | 13 | </div> |
| 14 | + </div> | ||
| 15 | + <div class="bottom_box"> | ||
| 16 | <div class="bottom_backg"> | 16 | <div class="bottom_backg"> |
| 17 | 17 | ||
| 18 | </div> | 18 | </div> |