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.
我下载了Netbeans IDE到HTML代码。我是新手。当我运行代码时,chrome正在打开,一切都很正常。我在输出浏览器日志中出现了一些错误。
Failed to load resource: net::ERR_EMPTY_RESPONSE (20:00:55:963 | error, network)
at http://localhost:8383/favicon.ico
How do I fix it?
我怎么修复它?
8 个解决方案
#1
86
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.
我犯这个错误也有一段时间了。这可能是与netbeans连接器有关的某种netbeans错误。我找不到任何关于favicon的东西。在我的代码中或在项目设置中。
I was able to fix it by putting the following line in the head
section of my html file
我可以通过在我的html文件的头部部分放置以下一行来修复它
<link rel="shortcut icon" href="">
I am currently using this in my testing environment, but I would remove it for any production environment.
我目前正在我的测试环境中使用它,但是我将在任何生产环境中删除它。
#2
21
The accepted answer didn't work for me, I had to add a value to the href attribute:
接受的答案对我不起作用,我必须为href属性添加一个值:
<link rel="shortcut icon" href="#" />
#3
15
favicon.ico is the icon of a website on the title bar of your website. Netbeans couldnt find the favicon.ico file in your website folder
收藏夹图标。ico是网站标题栏上的一个网站图标。Netbeans找不到favicon。ico文件在你的网站文件夹里
if you dont want it, you can remove the line that is similar to this in your head section
如果您不想要它,您可以删除在您的头部分类似于此的行。
<link rel="shortcut icon" href="favicon.ico">
or if you want to use an icon for the title bar, you can use icon convertor to generate a .ico image and keep it in your website folder and use the above line in the head section
或者,如果您想要为标题栏使用一个图标,您可以使用图标转换器生成一个.ico图像,并将其保存在您的网站文件夹中,并在标题部分使用上面的行
#4
10
The accepted answer didn't work for me so I've found this solution.
公认的答案对我不起作用,所以我找到了这个答案。
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
See the link for more info.
更多信息请参见链接。
#5
4
You can provide your own image and reference it in the head, for example:
你可以提供你自己的形象,并参考它的头部,例如:
<link rel="shortcut icon" href="images/favicon.ico">
#6
4
For me the answer didn't work too, but this work fine:
对我来说,这个答案也不管用,但是这个答案很好:
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
#7
2
Also, be careful so your href location isn't faulty. Study case:
另外,要小心,以免href错误。研究情况:
My index page was in a temporary sub-folder named LAYOUTS. To reach the favicon.png from inside the IMAGES folder, which was a sibling of the LAYOUTS folder, I had to put a path in my href like this
我的索引页在一个名为layout的临时子文件夹中。达到该图标。png在IMAGES文件夹中,它是LAYOUTS文件夹的兄弟文件夹,我必须在href中设置一个这样的路径
href="../images/favicon-32x32.png"
Double periods are necessary for folder navigation "upwards", then the forward slash + images
string gets you into the images folder (performing a tree branch "jump") and finally you get to reference your file by writing favicon-32x32.png
.
对于文件夹导航“向上”来说,两个周期是必要的,然后,前斜杠+图像字符串将您带入图像文件夹(执行树分支“跳转”),最后您可以通过编写favicon-32x32.png来引用您的文件。
This explanation is useful for those that start out from scratch and it would have been useful to have seen it a couple of times since I would forget that I had certain *.php files outside the LAYOUTS folder which needed different tree hrefs on my links, from the HEAD section of each page.
这个解释对于那些从头开始的人来说是有用的,而且如果我能看到它几次的话,我就会忘记我已经确定了*。在layout文件夹之外的php文件,在我的链接上需要不同的树索引,从每个页面的头部部分。
Reference the path to your favicon image accordingly.
因此,请参考您的favicon映像路径。
#8
1
The answers above didn't work for me. I found a very good article for Favicon, explaining:
上面的答案对我不起作用。我找到了一篇很好的Favicon的文章,解释说:
- what is a Favicon;
- 什么是网站图标;
- why does Favicon.ico show up as a 404 in the log files;
- 为什么图标。ico在日志文件中显示为404;
- why should You use a Favicon;
- 为什么要使用图标;
- how to make a Favicon using FavIcon from Pics or other Favicon creator;
- 如何利用图片中的图标或其他图标创建者创建一个图标;
- how to get Your Favicon to show.
- 如何让你的图标显示。
So I created Favicon using FavIcon from Pics
. Put it in folder (named favicon) and add this code in <head>
tag:
所以我用图片中的图标创建了Favicon。将其放入文件夹(命名为favicon),并在标签中添加此代码:
<link rel="shortcut icon" href="favicon/favicon.ico">
<link rel="icon" type="image/gif" href="favicon/animated_favicon1.gif">
Now there is no error and I see my Favicon:
现在没有错误,我看到我的图标:
#1
86
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.
我犯这个错误也有一段时间了。这可能是与netbeans连接器有关的某种netbeans错误。我找不到任何关于favicon的东西。在我的代码中或在项目设置中。
I was able to fix it by putting the following line in the head
section of my html file
我可以通过在我的html文件的头部部分放置以下一行来修复它
<link rel="shortcut icon" href="">
I am currently using this in my testing environment, but I would remove it for any production environment.
我目前正在我的测试环境中使用它,但是我将在任何生产环境中删除它。
#2
21
The accepted answer didn't work for me, I had to add a value to the href attribute:
接受的答案对我不起作用,我必须为href属性添加一个值:
<link rel="shortcut icon" href="#" />
#3
15
favicon.ico is the icon of a website on the title bar of your website. Netbeans couldnt find the favicon.ico file in your website folder
收藏夹图标。ico是网站标题栏上的一个网站图标。Netbeans找不到favicon。ico文件在你的网站文件夹里
if you dont want it, you can remove the line that is similar to this in your head section
如果您不想要它,您可以删除在您的头部分类似于此的行。
<link rel="shortcut icon" href="favicon.ico">
or if you want to use an icon for the title bar, you can use icon convertor to generate a .ico image and keep it in your website folder and use the above line in the head section
或者,如果您想要为标题栏使用一个图标,您可以使用图标转换器生成一个.ico图像,并将其保存在您的网站文件夹中,并在标题部分使用上面的行
#4
10
The accepted answer didn't work for me so I've found this solution.
公认的答案对我不起作用,所以我找到了这个答案。
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
See the link for more info.
更多信息请参见链接。
#5
4
You can provide your own image and reference it in the head, for example:
你可以提供你自己的形象,并参考它的头部,例如:
<link rel="shortcut icon" href="images/favicon.ico">
#6
4
For me the answer didn't work too, but this work fine:
对我来说,这个答案也不管用,但是这个答案很好:
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
#7
2
Also, be careful so your href location isn't faulty. Study case:
另外,要小心,以免href错误。研究情况:
My index page was in a temporary sub-folder named LAYOUTS. To reach the favicon.png from inside the IMAGES folder, which was a sibling of the LAYOUTS folder, I had to put a path in my href like this
我的索引页在一个名为layout的临时子文件夹中。达到该图标。png在IMAGES文件夹中,它是LAYOUTS文件夹的兄弟文件夹,我必须在href中设置一个这样的路径
href="../images/favicon-32x32.png"
Double periods are necessary for folder navigation "upwards", then the forward slash + images
string gets you into the images folder (performing a tree branch "jump") and finally you get to reference your file by writing favicon-32x32.png
.
对于文件夹导航“向上”来说,两个周期是必要的,然后,前斜杠+图像字符串将您带入图像文件夹(执行树分支“跳转”),最后您可以通过编写favicon-32x32.png来引用您的文件。
This explanation is useful for those that start out from scratch and it would have been useful to have seen it a couple of times since I would forget that I had certain *.php files outside the LAYOUTS folder which needed different tree hrefs on my links, from the HEAD section of each page.
这个解释对于那些从头开始的人来说是有用的,而且如果我能看到它几次的话,我就会忘记我已经确定了*。在layout文件夹之外的php文件,在我的链接上需要不同的树索引,从每个页面的头部部分。
Reference the path to your favicon image accordingly.
因此,请参考您的favicon映像路径。
#8
1
The answers above didn't work for me. I found a very good article for Favicon, explaining:
上面的答案对我不起作用。我找到了一篇很好的Favicon的文章,解释说:
- what is a Favicon;
- 什么是网站图标;
- why does Favicon.ico show up as a 404 in the log files;
- 为什么图标。ico在日志文件中显示为404;
- why should You use a Favicon;
- 为什么要使用图标;
- how to make a Favicon using FavIcon from Pics or other Favicon creator;
- 如何利用图片中的图标或其他图标创建者创建一个图标;
- how to get Your Favicon to show.
- 如何让你的图标显示。
So I created Favicon using FavIcon from Pics
. Put it in folder (named favicon) and add this code in <head>
tag:
所以我用图片中的图标创建了Favicon。将其放入文件夹(命名为favicon),并在标签中添加此代码:
<link rel="shortcut icon" href="favicon/favicon.ico">
<link rel="icon" type="image/gif" href="favicon/animated_favicon1.gif">
Now there is no error and I see my Favicon:
现在没有错误,我看到我的图标: