修改移动端判断

This commit is contained in:
Dragon
2024-01-24 20:14:49 +08:00
parent 6a84f98e41
commit 9def117874

View File

@@ -38,7 +38,7 @@ $(function () {
if (deviceWidth > 768) { if (deviceWidth > 768) {
document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px'; document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px';
} else { } else {
document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px'; // document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px';
} }
}); });
window.onresize = function () { window.onresize = function () {
@@ -47,7 +47,7 @@ $(function () {
if (deviceWidth > 768) { if (deviceWidth > 768) {
document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px'; document.documentElement.style.fontSize = deviceWidth / 19.20 + 'px';
} else { } else {
document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px'; // document.documentElement.style.fontSize = deviceWidth / 7.50 + 'px';
} }
} }
getInfoFromClient(); getInfoFromClient();