javascript - @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
......,但没有任何效果。
解决方案
推荐阅读
- typescript - 将 typescript 接口转换为 json 对象
- javascript - 为什么我们在倒计时应用程序中使用余数?
- arrays - Flutter:将计数器添加到重新运行的分页列表
- javascript - 如何将变量从 Python Flask 传输到 JavaScript?
- python - Django通过外键链接2个表
- python - Python:登录到通用文件
- excel - 如何创建一个可以更改 Excel 编辑模式中突出显示的字体颜色的 AHK 快捷方式?
- typescript - 如何获取父类泛型类型中键的属性值?
- android - Google Maps API 仅显示一个用户位置,但 Firebase 上保存了多个用户位置(Kotlin android 应用)
- javascript - React - React 路由器 dom