style(全局字体样式): 调整行高等样式

This commit is contained in:
hzj 2026-01-05 16:07:57 +08:00
parent e4833cb026
commit 23ff1b55f5
2 changed files with 9 additions and 0 deletions

View File

@ -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;
}
</style>

View File

@ -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; /* 统一控制行高 */
}