如何在网站上使用网站图标

问题描述:

我可以在本地主机上看到favicon,但在服务器上看不到...请帮助我

I can see favicon in localhost but not able to see on server...please help me

上传生成的文件("favicon.ico")到您的站点根文件夹.通过在浏览器的位置键入" http://mysite.com/favicon.ico "来验证它是否存在,其中"mysite.com"是您的站点地址.接下来,将以下代码插入页面的HEAD部分中,至少将您站点的主索引页面插入其中:
Upload the generated file ("favicon.ico") to your site root folder. Verify it''s there by typing http://mysite.com/favicon.ico in the browser''s location, where "mysite.com" is your site''s address. Next, insert the below code in the HEAD section of your pages, at the very least, your site''s main index page:
<link rel="shortcut icon" href="/favicon.ico" />



看看这些以供参考:
http://www.w3.org/2005/10/howto-favicon [ ^ ]
http://www.c-sharpcorner.com /uploadfile/afenster/add-a-favicon-to-your-Asp-Net-page/ [ http://www.chami.com/tips/internet/110599i.html [ ^ ]
http://www.javascriptkit.com/howto/customicon.shtml [



Have a look at these to refer:
http://www.w3.org/2005/10/howto-favicon[^]
http://www.c-sharpcorner.com/uploadfile/afenster/add-a-favicon-to-your-Asp-Net-page/[^]
http://www.chami.com/tips/internet/110599i.html[^]
http://www.javascriptkit.com/howto/customicon.shtml[^]