Changing in the top of the browser using HTML (favicon)

半城伤御伤魂 提交于 2019-12-30 19:17:12

问题


How do you change the small image showed in a browsers tab when viewing image using HTML? Sorry, I am new to programming.

The small image is what I am talking about.


回答1:


it's called a favicon:

place the favicon.ico file in the www root and use the following code:

 <link rel="shortcut icon" href="/favicon.ico">



回答2:


Merry Christmas Dear, here's your solution:

Insert the following line in <head> tag

<link href="Images/tsp1.png" rel="shortcut icon" type="image/x-icon" />

Replace Images/tsp1.png with a image of your choice, make it somting like a 16x16 image




回答3:


This is the Favicon. Have a look at the whikipedia article: http://en.wikipedia.org/wiki/Favicon




回答4:


Have an image in ico format with name favicon.ico in the root of your site. Search for favicon.ico for more information.




回答5:


It's called a favicon.

<link rel="shortcut icon" href="http://www.example.com/myicon.ico">


来源:https://stackoverflow.com/questions/4531976/changing-in-the-top-of-the-browser-using-html-favicon

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!