diff --git a/src/App.vue b/src/App.vue index ea4f315..1854aea 100644 --- a/src/App.vue +++ b/src/App.vue @@ -30,6 +30,10 @@ body { padding: 0; width: 100%; height: 100%; + /* 设置字体和行高 */ + font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', + Arial, sans-serif; + line-height: 1.4; /* 调整行高 */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; @@ -41,5 +45,7 @@ body { min-height: 100vh; margin: 0; padding: 0; + font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', + Arial, sans-serif; } diff --git a/src/styles/global.css b/src/styles/global.css index 4eaabeb..5984f02 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -2,12 +2,14 @@ /* 设置全局默认字体 */ html { font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; + line-height: 1.4; } body { font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; margin: 0; padding: 0; + line-height: 1.4; /* 添加行高控制 */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } @@ -15,4 +17,5 @@ body { /* 如果需要确保所有元素都使用该字体 */ * { font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; + line-height: 1.4; /* 统一控制行高 */ } \ No newline at end of file