This commit is contained in:
ljx
2025-11-14 16:34:39 +08:00
parent 7b4cdd2b3c
commit 07e43a1611
5 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,11 @@
$vm_base: 1920;
$vh_base: 1080;
// 计算vw
@function vw($px) {
@return calc(($px / $vm_base) * 100vw);
}
// 计算vh
@function vh($px) {
@return calc(($px / $vh_base) * 100vh);
}