艺术家
2025-06-09 7c129cb1793c51db134afef96dc099b62144dca3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<script setup>
import { RouterLink, RouterView } from "vue-router";
</script>
 
<template>
  <RouterView />
</template>
 
<style lang="scss">
/* 编写媒体查询,根据屏幕大小改变html的字体大小 */
 
@media screen and (max-width: 1200px) {
  html {
    font-size: 10px;
  }
}
 
@media screen and (min-width: 1200px) and (max-width: 1440px) {
  html {
    font-size: 10px;
  }
}
 
@media screen and (min-width: 1440px) and (max-width: 1680px) {
  html {
    font-size: 12px;
  }
}
 
@media screen and (min-width: 1680px) and (max-width: 1920px) {
  html {
    font-size: 14px;
  }
}
 
@media screen and (min-width: 1920px) and (max-width: 2560px) {
  html {
    font-size: 16px;
  }
}
 
@media screen and (min-width: 2560px) and (max-width: 3840px) {
  html {
    font-size: 18px;
  }
}
 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
// #app {
//   width: 100vw;
//   height: 100vh;
//   display: flex;
//   align-items: center;
//   justify-content: center;
// }
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  width: 100%;
}
</style>