当前位置:网站首页>IIS无法加载字体文件(*.woff,*.svg)的解决办法
IIS无法加载字体文件(*.woff,*.svg)的解决办法
2022-06-30 15:36:00 【51CTO】
在编写前端代码的过程中经常会遇到使用特定的字体(*.woff,*.svg),此时在加载字体时请求会被返回
Failed to load resource: the server responded with a status of 404 (Not Found)。
原因是,默认在IIS上是没有添加对*.woff,*.svg文件的Mime类型,因此在客户端请求此类文件时得到的都是404。
所以我们只需要在我们对应网站下的Mime类型中添加文件对应的类型就行了
- .woff application/x-font-woff
- .woff2 application/x-font-woff
- .svg image/svg+xml
再不行就是缺少字体文件,请检查前端的字体js之类的
边栏推荐
- Developer practice - the future of Agora home AI audio and video
- Alibaba cloud OSS object storage cross domain settings
- Practical cases of data visualization (timeline rotation diagram, streamlit control year metabase visualization tutorial) 2.0
- [algorithm] after summarizing the four linked lists, I brushed two interview questions
- Webrtc: industrial application based on Internet of things
- BYD is more and more like Huawei?
- Using asp Net core creating web API series
- Modifying MySQL password under Linux: error 1396 (HY000): Operation alter user failed for 'root' @ 'localhost‘
- Policy Center > Google Play‘s Target API Level Policy
- 互联网研发效能之去哪儿网(Qunar)核心领域DevOps落地实践
猜你喜欢

深入理解.Net中的线程同步之构造模式(二)内核模式1.内核模式构造物Event事件

Advanced C language - pointer 3 - knowledge points sorting

Policy Center > Device and Network Abuse

What would you choose between architecture optimization and business iteration?

Explain service idempotency design in detail

ASP. Net core Middleware

Web technology sharing | whiteboard toolbar encapsulation of Web

Interview experience of service end test engineer

halcon变量窗口的图像变量不显示,重启软件和电脑都没用
![Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.](/img/c1/99ad29789a669c4498fb93ce1fb009.png)
Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.
随机推荐
【时序数据库InfluxDB】Windows环境下配置InfluxDB+数据可视化,以及使用 C#进行简单操作的代码实例
Mysql database - create user name & modify permission
On which platform is it safer to buy Treasury reverse repo?
Using asp Net core creating web API series
【子矩阵数量统计】CF1181C Flag子矩阵数量统计
Explain service idempotency design in detail
linux下新建Mysql数据库并导入sql文件
The difference between intermodulation and intermodulation
Voice codec based on machine learning Agora silver: support high quality voice interaction at ultra-low bit rate
ASP. Net core signalr tutorial
return statement
Kubernetes: a comprehensive analysis of container choreography
The sound network has fully opened the real-time transmission network sd-rtn, which has been free of network wide accidents for seven years - this is FPA!
Basic literacy - four common software architectures
Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure
Practical cases of data visualization (timeline rotation diagram, streamlit control year metabase visualization tutorial) 2.0
深入理解.Net中的线程同步之构造模式(二)内核模式1.内核模式构造物Event事件
Technology sharing | how to quickly realize audio and video online calls
Policy Center-Permissions and APIs that Access Sensitive Information
交调与互调的区别