修改移动端判断
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user