如何在浏览我的页面时在浏览器的地址栏中添加图片? [英] How can I add a picture in address bar of the browser when my page is browsed?
问题描述
复制:
什么是目前最好的方式获得一个favicon在所有浏览器中显示支持Favicons?
我想在浏览器的地址栏中添加自己的徽标,无论何时浏览。
如何制作图标? 您需要图标 - 这是 .ico 格式存储为您网站的根目录中的favicon.ico。有些浏览器也支持其他格式。
更新,更基于标准的方法是在你的html头文件中包含这样的内容:
< link rel =icontype =image / pnghref =/ path / image.png/>
请参阅W3C的这份文件:如何为您的网站添加一个Favicon
您可能还想参考这些问题的其他答案:
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?
I want to add my logo in the address bar of the browser, whenever it is browsed.
How do I make a favicon?
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?
这篇关于如何在浏览我的页面时在浏览器的地址栏中添加图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!