阿里字体图标使用css伪元素添加问题


    <link rel="stylesheet" href="../04设计稿/小U课堂/U-class/font/font/iconfont.css">
    <style>

        @font-face {
            font-family: "iconfont";
            /* Project id 3278302 */
            src: url('iconfont.woff2?t=1648433808190') format('woff2'),
                url('iconfont.woff?t=1648433808190') format('woff'),
                url('iconfont.ttf?t=1648433808190') format('truetype');
        }

        span::before {
            content: "\e627";
            color: blue;
        }
    </style>

<body>

    <span>你好!</span>
</body>

img

控制台 有404的报错吗 ?有的话是路径问题。最好 把你的目录文件结构截个图