Skip to content

Commit

Permalink
fix: 修改页面宽度为100vw以适配移动端
Browse files Browse the repository at this point in the history
  • Loading branch information
JeacsonSnake committed Aug 20, 2024
1 parent a4e48a6 commit 499b559
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ export default {
font-family: "HarmonyOS_Sans_SC_Medium", Avenir, Helvetica, Arial, sans-serif;
--heightRate: calc(100vh / #{$base-height});
--widthRate: calc(100vw / #{$base-width});
width: inherit;
width: 100vw;
height: 100vh;
background-image: url("../../public/image/homepage_background_img.png");
background-color: rgba(242, 242, 242, 0.5);
Expand Down Expand Up @@ -1814,7 +1814,7 @@ export default {
font-size: calc(var(--heightRate) * 40);
}
@media (aspect-ratio < calc(460 / 1080)) {
font-size: calc(var(--heightRate) * 30);
font-size: 2rem;
}
}
}
Expand Down

0 comments on commit 499b559

Please sign in to comment.