调试时,favicon.ico资源加载失败问题

来源:互联网 发布:ubuntu 修改启动顺序 编辑:程序博客网 时间:2024/04/30 22:03

在浏览器调试时候,favicon.ico抛异常,加载失败,favicon.ico Failed to load resource: the server responded with a status of 4
在head标签添加favicon.ico图标即可。

<head>    <meta charset="utf-8">    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />    <title>缴费详情</title>    <link rel="shortcut icon" href="img/bitbug_favicon2.ico" /></head>

更详细的博客:http://www.cnblogs.com/LoveJenny/archive/2012/05/22/2512683.html