rem
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user