Commit 9666d01c32f9a9c389e29b9105802667372d96b7
1 parent
06b25c3a
优化
Showing
2 changed files
with
10 additions
and
9 deletions
src/pages/index/index.less
| 1 | 1 | .box { |
| 2 | 2 | width: 100%; |
| 3 | - height: 100vh; | |
| 3 | + min-height: 1600px; | |
| 4 | 4 | background: url("../../../static/img/background.jpg") no-repeat center top; |
| 5 | 5 | background-size: 100%; |
| 6 | 6 | overflow: hidden; |
| 7 | + position: relative; | |
| 7 | 8 | .btn_box { |
| 8 | 9 | width: 750px; |
| 9 | 10 | height: 570px; |
| ... | ... | @@ -29,9 +30,15 @@ |
| 29 | 30 | } |
| 30 | 31 | .bottom_box { |
| 31 | 32 | width: 100%; |
| 32 | - position: fixed; | |
| 33 | + position: absolute; | |
| 33 | 34 | left: 0px; |
| 34 | 35 | bottom: 0px; |
| 36 | + .bottom_backg { | |
| 37 | + width: 100%; | |
| 38 | + height: 270px; | |
| 39 | + background: url("../../../static/img/bottom.png") no-repeat; | |
| 40 | + background-size: 100% 100%; | |
| 41 | + } | |
| 35 | 42 | } |
| 36 | 43 | //.text { |
| 37 | 44 | // width: 466px; |
| ... | ... | @@ -43,10 +50,4 @@ |
| 43 | 50 | // background-size: 100%; |
| 44 | 51 | // margin: 0 auto |
| 45 | 52 | //} |
| 46 | - .bottom_backg { | |
| 47 | - width: 100%; | |
| 48 | - height: 270px; | |
| 49 | - background: url("../../../static/img/bottom.png") no-repeat; | |
| 50 | - background-size: 100% 100%; | |
| 51 | - } | |
| 52 | 53 | } | ... | ... |