搬运起点

This commit is contained in:
蔡玲
2024-12-19 10:42:08 +08:00
parent 7486ba6078
commit 8611fca1f8
12 changed files with 1215 additions and 682 deletions

View File

@@ -1,10 +1,12 @@
/** 10.4寸屏4:3的1366*768 */
// apt设备尺寸分辨率1024*768 现在新设备2560*1440
(function (doc, win) {
var docEl = doc.documentElement
var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
var recalc = function () {
var clientWidth = docEl.clientWidth
if (!clientWidth) return
docEl.style.fontSize = 100 * (clientWidth / 1920) + 'px'
docEl.style.fontSize = 100 * (clientWidth / 1366) + 'px'
}
if (!doc.addEventListener) return
win.addEventListener(resizeEvt, recalc, false)