站点 URL 旁边的图像图标 [英] Image icon beside the site URL
本文介绍了站点 URL 旁边的图像图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想了解有关在 Web 浏览器上与站点 URL 一起显示的图标的信息.这是某些浏览器特定的功能吗?我们在哪里指定图标来源,即它是否在网页本身的某个标签中?
I would like to have information about the icons which are displayed alongside the site URLs on a web browser. Is this some browser specific feature? Where do we specify the icon source, ie, is it in some tag on the web page itself ?
推荐答案
这些图标被称为 favicon
大多数网络浏览器都支持 http://mysite.com/favicon.ico这样做是在头像中包含一个图标元标记.
Most web browsers support http://mysite.com/favicon.ico but the proper way to do it is to include an icon meta tag in the head profile.
<head profile="http://www.w3.org/2005/10/profile">
<link rel="icon"
type="image/png"
href="/somewhere/myicon.png" />
[…]
</head>
最好的办法是使用相同的图标图像.
Your best bet is to probably do both with the same icon image.
这篇关于站点 URL 旁边的图像图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文