English 中文(简体)
我如何在我网站的表格旁边创建小型icon?
原标题:How do I create the small icon next to the website tab for my site?
  • 时间:2011-10-23 10:52:05
  •  标签:
  • html

我不知道我所说的话。 基本上,(我没有足够声誉来插入形象),这比你在表格上显示你所重网站的一点点。 如同用手法一样,“f”与蓝色背景和阴道一样,“g”与颜色相同......

Could anyone please help me with how to implement it on my website and what it s called? Thanks so much

最佳回答

It is called favicon.ico and you can generate it from this site.

问题回答

这对浏览器中的icon(大部分地点是 type的)是这样:

<link rel="icon" type="image/vnd.microsoft.icon"
     href="http://example.com/favicon.ico" />

<link rel="icon" type="image/png"
     href="http://example.com/image.png" />

<link rel="apple-touch-icon"
     href="http://example.com//apple-touch-icon.png">

f或 the sh或tcut icon:

<link rel="sh或tcut icon"
     href="http://example.com/favicon.ico" />

放在<代码><head></head>节。

Edit may 2019 some additional examples from MDN





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签