我收到 favicon.ico 错误 [英] I'm getting favicon.ico error

查看:53
本文介绍了我收到 favicon.ico 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了 Netbeans IDE 来编写 HTML 代码.我是新手.当我运行我的代码时,chrome 正在打开并且一切正常.我在输出 - 浏览器日志中遇到某种错误.

I downloaded the Netbeans IDE to code in HTML. I'm new to it. When I run my code, chrome is opening and everything is working just fine. I'm getting some sort of error in the Output - Browser Log.

Failed to load resource: net::ERR_EMPTY_RESPONSE (20:00:55:963 | error, network)
at http://localhost:8383/favicon.ico

我该如何解决?

推荐答案

这个错误我也有一段时间了.这可能是某种与 netbeans 连接器有关的 netbeans 错误.我在我的代码或项目设置中找不到任何提及 favicon.ico 的内容.

I have had this error for some time as well. It might be some kind of netbeans bug that has to do with netbeans connector. I can't find any mention of favicon.ico in my code or in the project settings.

我可以通过将以下行放在我的 html 文件的 head 部分来修复它

I was able to fix it by putting the following line in the head section of my html file

<link rel="shortcut icon" href="#">

我目前在我的测试环境中使用它,但我会在任何生产环境中删除它.

I am currently using this in my testing environment, but I would remove it for any production environment.

这篇关于我收到 favicon.ico 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆