Join icon icon on the page title

A method (passive):

Ico make a picture format, the picture will be named favicon.ico , a pixel size of 16 * 16, the colors used shall not exceed 16 colors, then put favicon.ico put at the root of the site on the list. In this case the browser will not stop the search for the root of your site, as long as it discovered the name was a favicon.ico file, the icon will be displayed in the visitor's address bar and the favorites list.

Method 2 (automatic):

Add the following code page HEAD tags:

The title bar:
<Link rel = "icon" href = "ico address" type = "image / x-
icon"> Favorites:
<Link rel = "Shortcut icon" href = "ico address" type = "image / x- icon ">

Note: icon to use 16 * 16 colors. . . (To ensure compatibility, no matter which place can be displayed)

 

Here to note that if the 16 * 16 bmp file changed ico, in WINDOWS support, but on the browser or other software will be wrong. So the picture format to be adjusted by software , after all, the information inside is not the same.

 

At the same time when using the second method, you do not necessarily want the graphics file in the root directory of the site below, you can be placed anywhere, even direct links to other sites on top of graphics files can also be, and the file name of the graphics file does not have to be called favicon.ico, you can easily take your own. Note, however, that the use of this practice, then, only when the page bookmarked to have added to the above HTML syntax will have a role.

Guess you like

Origin blog.csdn.net/weixin_39616995/article/details/90510865