no message

This commit is contained in:
蔡玲
2024-10-10 16:18:02 +08:00
commit 50931d2994
288 changed files with 20839 additions and 0 deletions

14
src/config/rem.js Normal file
View File

@@ -0,0 +1,14 @@
/** 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 / 1366) + 'px'
}
if (!doc.addEventListener) return
win.addEventListener(resizeEvt, recalc, false)
doc.addEventListener('DOMContentLoaded', recalc, false)
})(document, window)