zoukankan      html  css  js  c++  java
  • rem

    (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);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);

  • 相关阅读:
    servlet学习之servletAPI编程常用的接口和类
    问题解决
    HTTP Status 500 – Internal Server Error
    用数组模拟队列
    稀疏数组
    值传递机制及几道网红题目
    关于Tomcat配置问题
    Servlet学习笔记
    面向对象笔记
    数组中涉及的常见算法
  • 原文地址:https://www.cnblogs.com/peijunma/p/6089641.html
Copyright © 2011-2022 走看看