I have uploaded .ico file for favicon and its working fine as favicon in all browsers. But when i try to show this .ico file in HTML image tag in IE, it is not displayed correctly. Please help.
1条回答 默认 最新
- dongqieli4164 2013-04-25 08:15关注
IE doesn't serve favicons which doesn't have the
type="image/x-icon"
on it.So for favicons for IE, you should use this:
<link rel="icon" type="image/x-icon" href="favicon.ico" />
For showing the icon as a
img
tag, the best solution I can think of is trying another format. If you are uploading the icons manually, then I would convert them with an image program.If you a system which allows users to upload icons, then I would use the GD or ImageMagick library to convert those.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 一道python难题
- ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
- ¥15 牛顿斯科特系数表表示
- ¥15 arduino 步进电机
- ¥20 程序进入HardFault_Handler
- ¥15 oracle集群安装出bug
- ¥15 关于#python#的问题:自动化测试
- ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
- ¥15 教务系统账号被盗号如何追溯设备
- ¥20 delta降尺度方法,未来数据怎么降尺度