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

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title>中国面条</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>