Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 加载资源失败:服务器响应状态为404(未找到)http://localhost:5266/Content/fonts/glyphicons-半身人-普通。woff2_Html_Css_Twitter Bootstrap_Css Selectors - Fatal编程技术网

Html 加载资源失败:服务器响应状态为404(未找到)http://localhost:5266/Content/fonts/glyphicons-半身人-普通。woff2

Html 加载资源失败:服务器响应状态为404(未找到)http://localhost:5266/Content/fonts/glyphicons-半身人-普通。woff2,html,css,twitter-bootstrap,css-selectors,Html,Css,Twitter Bootstrap,Css Selectors,我正在使用引导程序,它工作正常,然后突然出现此错误 加载资源失败:服务器响应状态为404(未找到) 请帮助我。尝试将链接从./更改为/ 你可以参考这一点,或者搜索更多关于文件路径的信息。我知道这个问题是不久前提出的;我发表评论是为了节省别人的时间 该错误可能是因为web服务器默认配置无法处理意外的woff2文件类型 将其添加到web.config文件的“配置”标记中: <system.webServer> <staticContent> <r

我正在使用引导程序,它工作正常,然后突然出现此错误

加载资源失败:服务器响应状态为404(未找到)



请帮助我。

尝试将链接从
./
更改为
/


你可以参考这一点,或者搜索更多关于文件路径的信息。

我知道这个问题是不久前提出的;我发表评论是为了节省别人的时间

该错误可能是因为web服务器默认配置无法处理意外的woff2文件类型

将其添加到web.config文件的“配置”标记中:

<system.webServer>
    <staticContent>
      <remove fileExtension=".woff2" />
      <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
    </staticContent>
</system.webServer>


感谢:

检查您的控制台是否有错误,并发布您的文件夹结构。
<system.webServer>
    <staticContent>
      <remove fileExtension=".woff2" />
      <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
    </staticContent>
</system.webServer>