hookehuyr

fix 字体问题处理

1 <!-- 1 <!--
2 * @Date: 2024-09-26 13:36:06 2 * @Date: 2024-09-26 13:36:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-10-17 09:45:26 4 + * @LastEditTime: 2024-10-17 15:55:29
5 * @FilePath: /hager/src/App.vue 5 * @FilePath: /hager/src/App.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -42,7 +42,6 @@ export default { ...@@ -42,7 +42,6 @@ export default {
42 42
43 html, 43 html,
44 body { 44 body {
45 - font-size: 16px;
46 width: 100%; 45 width: 100%;
47 height: 100%; 46 height: 100%;
48 margin: 0; 47 margin: 0;
...@@ -54,6 +53,28 @@ body { ...@@ -54,6 +53,28 @@ body {
54 } 53 }
55 } 54 }
56 55
56 +body {
57 + font-size: 16px; /* 默认字体大小 */
58 +}
59 +
60 +// @media (max-width: 1200px) {
61 +// body {
62 +// font-size: 14px; /* 1200px 以下屏幕的字体大小 */
63 +// }
64 +// }
65 +
66 +// @media (max-width: 768px) {
67 +// body {
68 +// font-size: 12px; /* 768px 以下屏幕的字体大小 */
69 +// }
70 +// }
71 +
72 +// @media (max-width: 480px) {
73 +// body {
74 +// font-size: 10px; /* 480px 以下屏幕的字体大小 */
75 +// }
76 +// }
77 +
57 .global-center { 78 .global-center {
58 position: relative; 79 position: relative;
59 top: 50%; 80 top: 50%;
......