简体   繁体   中英

How do you allow a fav icon to show in all versions of IE?

How do you allow a fav icon to show in all versions of IE? I have fav icons that has been inserted in the root and sub-directory within the website. It will display in Chrome, Firefox, and Safari. However, it will not display in any versions of IE (I have test IE 8 and 9 with changing the environments between earlier versions using the compatibility feature). How do I make this work?

I am using this code in my html and tags:

<head>
     <link rel="shortcut icon" href="http://www.domain.com/icons/favicon.ico" type="image/x-icon">
     <link rel="icon" href="http://www.domain.com/icons/favicon.ico" type="image/x-icon">
</head>

I have research related questions on Stack Overflow as well as outside sources and they agree on the implementation used in my HTML. I am wondering what the problem could be.

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />

您的favicon.ico必须放在头标签大小:16x16 + 32x32,颜色:256色和32位之间,对于Internet Explorer,它必须是透明的(外部白色部分不可见)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM