如何检索网站图标? [英] How can I retrieve a website icon?
本文介绍了如何检索网站图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在建立一个Web链接列表,该链接指向要跟踪的站点,我想放置网站图标,而不是默认的浏览器.
I am building a list of web Link to sites that I want to keep track of, and I would like to put the website icon, not the default browsers.
我该怎么做?
推荐答案
许多站点将favicon.ico文件放在根目录中,因此请下载文件"www.asite.com/favicon.ico"(如果存在).我认为旧版IE仅支持单个收藏夹图标,因此应该可以使用其中的大多数图标.
A lot of sites put a favicon.ico file in the root so download the file "www.asite.com/favicon.ico" if it exists. I think legacy IE only supports a single favicon so that should get it most of them.
您还可以尝试检查链接标记,以查看是否位于特定位置.
You could also try and check the link tags to see if there is on located somewhere specific.
例如:
<link rel="icon" type="image/vnd.microsoft.icon" href="http://example.com/image.ico">
更多有关网站图标的信息:
more on favicons here:
http://en.wikipedia.org/wiki/Favicon
这篇关于如何检索网站图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文