How to display the logo on the address bar?

妖精的绣舞 提交于 2019-12-09 00:30:39

问题


I want to show logo on the address bar. But it is visible only on tab next to title.

<link rel="icon" href="http://www.mydomain.info/favicon.ico" type="image/x-icon" />      
<link rel="shortcut icon" href="http://www.mydomain.info/favicon.ico" type="image/x-icon" /> 

回答1:


Short answer: yes. That's how many browsers work.

Firefox: http://msujaws.wordpress.com/2012/04/23/an-update-to-site-identity-in-desktop-firefox/

Chrome: why doesn't the favicon file show in the address bar of google chrome? and http://productforums.google.com/forum/#!topic/chrome/kUQOKVUwUmw

In the wikipedia page, you can find some more about browser support. In short, Firefox and Chrome don't do it, Explorer, Safari and Opera do.




回答2:


It is up to the browser to decide where/whether to display a favicon.

Chrome reserved the addressbar for the address and an indication of the protocol.

There is not much you can do about it.



来源:https://stackoverflow.com/questions/18458697/how-to-display-the-logo-on-the-address-bar

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