【发布时间】:2023-03-16 14:47:01
【问题描述】:
Laravel 应用程序未显示字形图标,因为显示错误“加载资源失败:服务器响应状态为 404(未找到)” ?
解决方案:
$ mkdir public/css/fonts
$ cp node_modules/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf 公共/css/字体/
$ cp node_modules/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff 公共/css/字体/
$ cp node_modules/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 公共/css/字体/
【问题讨论】:
-
哪个文件具体是404?
-
我遇到了类似的问题。在 Laravel 5.4(在我的例子中)gluphicons 没有加载。我为这个问题写了一个解决方案here。
标签: php twitter-bootstrap laravel glyphicons