favicon.ico

favicon.ico is used as a web icon and is supported by all current browsers.

It can be placed directly in the main directory, automatically loaded, or set in the header.

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/> 

<link rel="bookmark" href="/favicon.ico" />

If it is a dynamic image (only supported by fireFox), then

<link rel="icon" href="/favicon.gif" type="image/gif" />

The size of the icon can be set to 16*16 or 32*32, it is useless if it is too large.

Common icon websites: http://www.easyicon.net/language.zh-cn/

http://www.faviconico.org/

For websites that do not want to use this operation, such as h5 mobile development, you can add the following code to the home page (request empty img data):

<link rel="icon" href="data:;base64,=">

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324930216&siteId=291194637