首页 > 解决方案 > @font-face 没有在我的 node.js 应用程序中加载我的字体文件

问题描述

这是在我的 CSS 中:

@font-face {
    font-family: posterama;
    src: url('/posterama/Posterama1901-Regular.otf') format("opentype");
}

我的字体在app/public/posterama/. 我也尝试过(../public/posterama/Post......,(app/public/posterama/Post(../posterama/Post......,但没有任何效果。

标签: javascriptcssnode.jsfonts

解决方案


推荐阅读