Php Glyphicon未与laravel一起显示
我已通过以下方式将glyphicon图标包括在我的Laravel webapp中:Php Glyphicon未与laravel一起显示,php,twitter-bootstrap,laravel,glyphicons,Php,Twitter Bootstrap,Laravel,Glyphicons,我已通过以下方式将glyphicon图标包括在我的Laravel webapp中: 但由于找不到资源,因此未显示它们 以下是HTTP 404的详细信息: GET http://localhost:8000/fonts/vendor/bootstrap-sass/bootstrap/glyphicons- halflings-regular.woff2 [HTTP/1.0 404 Not Found 168ms] downloadable font: download failed (font-
但由于找不到资源,因此未显示它们
以下是HTTP 404的详细信息:
GET http://localhost:8000/fonts/vendor/bootstrap-sass/bootstrap/glyphicons-
halflings-regular.woff2 [HTTP/1.0 404 Not Found 168ms]
downloadable font: download failed (font-family: "Glyphicons Halflings"
style:normal weight:normal stretch:normal src index:1): status=2147746065
source: http://localhost:8000/fonts/vendor/bootstrap-
sass/bootstrap/glyphicons-halflings-regular.woff2?
448c34a56d699c29117adc64c43affeb
提前感谢。检查您的项目/public/font/vendor/bootstrap sass/bootstrap下是否有glyphions halflings regular.woff2文件
错误是您的浏览器找不到此文件,可能是路径错误。您只需在html头部使用CDN即可
现在试试-
该错误是否不能解释您需要执行的操作?在请求它们的位置找不到它们…从http://localhost:8000/fonts/vendor/bootstrap-sass/bootstrap/glyph图标半身人常规。服务器无法访问woff2
(404)。检查路径是否正确。您的\u project/public/fonts文件夹丢失。我使用composer创建了一个标准的laravel项目。我应该做点别的吗?Laravel版本为5.5.12。缺少项目/public/font文件夹。我使用composer创建了一个标准的laravel项目。我应该做点别的吗?Laravel版本是5.5.12。是的,您应该在公用文件夹中包含字体,然后更改CSS文件的路径,以便浏览器能够获取您的字体。这应该作为注释而不是答案发布。