favicon

Favicon not showing up in Google Chrome [duplicate]

不问归期 提交于 2019-11-26 02:07:27
问题 This question already has an answer here: HTML favicon won't show on google chrome 14 answers I have a favicon icon which isn\'t showing up in Chrome (I\'m not sure about other browsers as I only use Chrome) but the strange thing is if I type the path to the icon in the URL bar it shows up! Why doesn\'t the icon appear? 回答1: 1) Clear your cache. http://support.google.com/chrome/bin/answer.py?hl=en&answer=95582 And test another browser, lets say safari. How did you import the favicon? 2) How

How to add a browser tab icon (favicon) for a website?

为君一笑 提交于 2019-11-26 00:26:32
问题 I\'ve been working on a website and I\'d like to add a small icon to the browser tab. How can I do this in HTML and where in the code would I need to place it (e.g. header)? I have a .png logo file that I\'d like to convert to an icon. Related: HTML set image on browser tab. 回答1: There are actually two ways to add a favicon to a website. <link rel="icon"> Simply add the following code to the <head> element: <link rel="icon" href="http://example.com/favicon.png"> PNG favicons are supported by

How to prevent favicon.ico requests?

纵饮孤独 提交于 2019-11-26 00:21:10
问题 I don\'t have a favicon.ico, but IE always makes a request for it. Is it possible to prevent the browser from making a request for the favicon from my site? Maybe some META-TAG in the HTML header? 回答1: I will first say that having a favicon in a Web page is a good thing (normally). However it is not always desired and sometime developers need a way to avoid the extra payload. For example an IFRAME would request a favicon without showing it. Worst yet, in Chrome and Android an IFRAME will

How do I force a favicon refresh?

不问归期 提交于 2019-11-25 22:58:23
问题 I have a Grails application running locally using its own tomcat and I have just changed the favicon for a new one. Problem is that I can not see it in any browser. The old favicon shows up or I get no favicon at all, but not my new one. I do not think this is a Grails issue per se, more an issue with favicons. What is supposed to happen with favicons? How are they supposed to work? I have numerous bookmarks in my browser which have the wrong icons and they never seem to get refreshed. How do

Changing website favicon dynamically

早过忘川 提交于 2019-11-25 21:59:30
问题 I have a web application that\'s branded according to the user that\'s currently logged in. I\'d like to change the favicon of the page to be the logo of the private label, but I\'m unable to find any code or any examples of how to do this. Has anybody successfully done this before? I\'m picturing having a dozen icons in a folder, and the reference to which favicon.ico file to use is just generated dynamically along with the HTML page. Thoughts? 回答1: Why not? (function() { var link = document