update:更新样式

This commit is contained in:
2021-09-13 14:35:17 +08:00
parent 2846dac445
commit 920994857b
7 changed files with 150 additions and 56 deletions

View File

@@ -1,4 +1,24 @@
html,
body {
height: 100%;
}
height: 100%;
}
@media screen and (max-width: 767px) {
html {
font-size: 18px;
}
}
@media screen and (min-width: 768px) {
html {
font-size: 20px;
}
}
@media screen and (min-width: 970px) {
html {
font-size: 24px;
}
}
@media screen and (min-width: 1200px) {
html {
font-size: 28px;
}
}

View File

@@ -0,0 +1,26 @@
html,
body {
height: 100%;
}
@Size: 28px;
@media screen and (max-width: 767px) {
html {
font-size: (504 / @Size); //18px
}
}
@media screen and (min-width: 768px) {
html {
font-size: (560 / @Size);
}
}
@media screen and (min-width: 970px) {
html {
font-size: (672 / @Size);
}
}
@media screen and (min-width: 1200px) {
html {
font-size: (784 / @Size); //28px
}
}