This commit is contained in:
clay
2021-12-31 23:12:37 +08:00
parent 3f23c616ea
commit 8232008a5c
29 changed files with 1779 additions and 419 deletions

View File

@@ -13,7 +13,8 @@
}
function fnResize() {
var deviceWidth = document.documentElement.clientWidth || window.innerWidth;
let deviceWidth = document.documentElement.clientWidth || window.innerWidth;
// let deviceWidth = document.documentElement.clientHeight || window.innerHeight;
if (deviceWidth >= 750) {
deviceWidth = 750;
}
@@ -21,6 +22,8 @@
deviceWidth = 320;
}
document.documentElement.style.fontSize = (deviceWidth / 75) + 'px';
// document.documentElement.style.width = (deviceWidth / 75) + 'px';
// document.documentElement.style.height = (deviceWidth / 75) + 'px';
}
</script>