I am using these
<link rel="icon" href="/images/favicon.png" type="image/x-icon" />
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
I can开发者_运维知识库 see favicon in my address bar but no animation? What else am I supposed to do?
Get rid of the first line pointing to the favicon.png
so that you have only
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
And ensure that the favicon.ico
is a real animated favicon and not something renamed. You can use http://www.animatedfavicon.com or http://www.favicongenerator.org to convert an animated .gif
file to an animated .ico
file.
I believe some browsers simply do not support animated favicons. So you may want to check around on different browsers and realize that on some you may have a static icon, while on others it looks just as you wanted it to.
Some browsers don't support them like Chrome or Safari but it works quite well in Firefox....Keeping in mind that you use a .ico file.
精彩评论