This commit is contained in:
2023-05-05 14:20:13 +08:00
commit 68ddc1f80c
129 changed files with 16637 additions and 0 deletions

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

@@ -0,0 +1,13 @@
/** 10.4寸屏4:3的1366*768 */
(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)