This commit is contained in:
X1627315083
2025-10-09 16:06:04 +08:00
11 changed files with 457 additions and 12 deletions

View File

@@ -19,7 +19,7 @@ let flexible = (designWidth) =>{
// }else{
// designWidth = 375
// }
var rem = Math.round(width * 10 / designWidth);
var rem = (width * 10 / designWidth).toFixed(2);
docEl.style.fontSize = rem+'px'
remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
}