index.html 589 字节
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>tangyuan</title>
</head>

<body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
</body>
<script>
    // 尺寸计算
    function setFontSize() {
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
    };


    window.addEventListener('resize', function() {
        setFontSize();
    }, false);


    setFontSize();
</script>

</html>