html - 为 .ttf 和 .woff 文件获取 net::ERR_ABORTED 404
问题描述
我正在尝试使用 4 个文件(///)并从 a 显示图标字体, 但.ttf
我在控制台 上收到以下错误:.woff
.svg
.eot
Style.css
GET http://localhost:9090/fonts/SAIP-Icons.ttf?unaq0q net::ERR_ABORTED 404
GET http://localhost:9090/fonts/SAIP-Icons.woff?unaq0q net::ERR_ABORTED 404
我试图app.use(express.static('fonts'));
在我的 .js 文件中添加(),但我没有工作,不知道这里有什么问题。
这是我的项目图片: 点击这里
解决方案
推荐阅读
- php - 在 SQL 中添加,添加收入,费用,按名称排序
- ios - 在 Swift 5 中点击通知时切换 ViewController
- discord.js - 在 discord.js 中,使用 quick.db 我想为我的机器人的货币系统创建一个卖出命令
- java - 使用 Mongodb 的 Spring Boot 应用程序非常慢
- amazon-web-services - 在 Cloudfront s3 发行版中使用有序缓存拒绝访问 (403)
- python - 单击破折号中的按钮后,从数据框中填充 dash_table
- r - 如何在闪亮的反应数据中重复创建列?
- javascript - 在 React 中将用户给定的图像发送到 Api
- javascript - Firebase 错误:未创建任何 Firebase 应用
- java - 轻量级易于安装的数据库