This commit is contained in:
ChuXun
2025-10-11 18:15:20 +08:00
parent 98c6e4b11a
commit cf8f4c5c3a
283 changed files with 105716 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
(function(doc, win) {
var docEl = doc.documentElement, resizeEvt = 'onorientationchange' in window ? 'onorientationchange' : 'resize', recalc =
function() {
var clientWidth = docEl.clientWidth;
// if (!clientWidth) return;
// if(clientWidth>=750){
// docEl.style.fontSize = '100px';
// }else{
// }
docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
};
if ( !doc.addEventListener)
return;
win.addEventListener(resizeEvt, recalc, false);
recalc();
})(document, window);