如何将图片放在HTML的url中? [英] How do I put image in url in HTML?
本文介绍了如何将图片放在HTML的url中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将图片放在HTML的url中?在地址栏的左侧.
How do I put image in url in HTML? Just left of the address bar.
推荐答案
Take a look at the wikipedia entry for favicon - http://en.wikipedia.org/wiki/Favicon
此格式为.ico文件,您需要将该文件放置在Web服务器的根文件夹中.
The format for this is an .ico file and you need to place this in the root folder of your webserver.
对于更高级的方案,您还可以使用以下方法在每页上使用不同的图标:
For more advanced scenarios, you can also have a different icon per page by using:
<link rel="shortcut icon" href="http://www.example.com/myicon.ico" />
这篇关于如何将图片放在HTML的url中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文