开源世界, 黑科技fontawesome不能正常显示网站迁移后使用了宝塔面板,主题中有用到fontawesome图标字体,但是全部显示不出来,经过检查是因为宝塔面板中的NGINX配置文件中没有字体头文件,在NGINX配置文件中加入以下内容后正常显示。 location ~* \.(eot|otf|ttf|woff|svg|woff2)$ { add_header Access-Control-Allow-Origin *; } 2018年2月5日/0 评论/通过: Winter https://www.8win.net/wp-content/uploads/2022/04/12.jpg 125 200 Winter https://www.8win.net/wp-content/uploads/2016/03/logo.png Winter2018-02-05 11:11:032018-04-24 11:16:21fontawesome不能正常显示
发表评论
Want to join the discussion?Feel free to contribute!