How can I add a picture in address bar of the browser when my page is browsed?

柔情痞子 提交于 2019-12-21 12:25:12

问题


Duplicate:

Image icon beside the site URL

What is currently the best way to get a favicon to display in all browsers that support Favicons?

Preferred way to use favicons?

I want to add my logo in the address bar of the browser, whenever it is browsed.

How do I make a favicon?


回答1:


You need a favicon - this is a 16x16 image in .ico format stored as favicon.ico in the root directory your site. Some browsers do support other formats too.

A newer, more standards based approach is to include something like this in your html head:

<link rel="icon" type="image/png" href="/path/image.png"/>

See also this document from W3C: How to Add a Favicon to your Site

You might also want to refer to these other answers to the question:

  • Image icon beside the site URL
  • What is currently the best way to get a favicon to display in all browsers that support Favicons?
  • Preferred way to use favicons?



回答2:


That image is called a favicon and here are some links on how to add one or you can just google "how to add a favicon" for more information.

http://www.w3.org/2005/10/howto-favicon

http://www.clickfire.com/favicon-tutorial

http://essentialkeystrokes.com/tutorial-how-to-create-your-own-favicon




回答3:


See http://en.wikipedia.org/wiki/Favicon




回答4:


Are you talking about creating a Favicon?

If so, here's a site which will help you make one.



来源:https://stackoverflow.com/questions/626371/how-can-i-add-a-picture-in-address-bar-of-the-browser-when-my-page-is-browsed

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