HTML 在浏览器选项卡上设置图像
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2359866/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 02:22:00 来源:igfitidea点击:
HTML set image on browser tab
提问by ozsenegal
How do I set a little icon next to the website title on tabs in the web browser?
如何在 Web 浏览器选项卡上的网站标题旁边设置一个小图标?
回答by Cory Petosky
It's called a Favicon, have a read.
它被称为Favicon,请阅读。
<link rel="shortcut icon" href="http://www.example.com/myicon.ico"/>
You can use this neat toolto generate cross-browser compatible Favicons.
您可以使用这个简洁的工具来生成跨浏览器兼容的 Favicon。
回答by mathewsun
<link rel="SHORTCUT ICON" href="favicon.ico" type="image/x-icon" />
<link rel="ICON" href="favicon.ico" type="image/ico" />
Excellent tool for cross-browser favicon - http://www.convertico.com/
跨浏览器图标的优秀工具 - http://www.convertico.com/