如何在网站上使用网站图标 [英] how to use favicon for website

查看:116
本文介绍了如何在网站上使用网站图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在本地主机上看到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[^]


这篇关于如何在网站上使用网站图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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