dongyun51582 2013-04-25 07:53
浏览 156
已采纳

如何在IE中显示.ico图像文件

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 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记