Fonts display<网站字体不能正常显示>
来源:互联网 发布:假章使用软件 编辑:程序博客网 时间:2024/05/06 09:23
网站字体不能正常显示. 发现网站所用的woff、svg等字体压根就没被页面加载。反复排摸都不得其解,用浏览器访问服务器上的这些字体url,全都报404错误,只有ttf的字体能被访问到…
在web.config文件里面做如下设置:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".woff"/>
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension=".woff"/>
<remove fileExtension=".svg"/>
<remove fileExtension=".woff2"/>
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
</staticContent>
</system.webServer>
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
</staticContent>
</system.webServer>
</configuration>
下面是效果图, 之前那些图标都是框, 属于无法正常显示;
0 0
- Fonts display<网站字体不能正常显示>
- IE8下中国银行网站不能正常显示
- word不显示fonts文件夹中的字体
- 网站发布后, ReportViewer 控件不能正常显示
- 非英文[字符]在网站上不能正常显示
- ClassView 不能正常显示
- 解决不能正常显示
- 图标不能正常显示
- listView 不能正常显示
- RenderTexture 不能正常显示
- component不能正常显示
- Adjust Chromium display fonts
- Linux版Sublime Text中文不能正常显示的解决方案(修改字体)
- ArcGIS Server在Windows7和Windows2008发布地图,字体符号不能正常显示
- Css样式不能正常显示
- PB 图片不能正常显示
- 语言栏不能正常显示
- SVN图标不能正常显示
- Android利用反射获取WLAN热点信息
- 导航器覆盖视图一部分的解决方法
- linux grep命令详解
- 如何有效地记录 Java SQL 日志?
- LeetCode:Expression Add Operators
- Fonts display<网站字体不能正常显示>
- 寻找最大的K个数
- 在线编程网站
- 请求图片服务器
- C++ 引用
- 两数之和三 设计一个类,包含如下两个成员函数:Save(int input)插入一个整数到一个整数集合里。Test(int target)检验是否存在两个数和为输入值。如果存在着两个数,则返回true
- Java中常见的设计模式之单例设计模式
- java.lang.OutOfMemoryError: PermGen space
- 网页中插入地图