firefox - Favicon不会仅在Firefox中的一页显示

标签 firefox grails favicon

我的所有页面都有模板。
在此模板中,我显示带有以下代码的网站图标:

<r:external uri="/images/favicon.ico"/>

在静态html中,它将生成以下代码:
<link href="<somelink>.ico" rel="shortcut icon" />

在Chrome中,favicon.ico可以正确显示所有页面,但是在Firefox中,仅一页不显示。此页面与其他页面没有什么不同。

有谁知道如何解决这个问题?

最佳答案

定义<base>标签:

像这样:

<html>
   <title>THE TITLE</title>
   <base href="http://YOUR_URL.COM"/>
   ........
</html>

关于firefox - Favicon不会仅在Firefox中的一页显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14394661/

相关文章:

html - Reactjs,更改 componentDidMount 中的图标

eclipse - 从SpringSource Tool Suite(STS)运行集中的Groovy单元测试

grails - Grails唯一约束无法更新

javascript - 动态多次来回更改图标

tomcat6 - 如何在java中为Web应用程序设置图标?

grails - Grails 2.4.x中的群集缓存

html - Firefox 位置 : absolute not returning expected results

html - 为什么菜单出现在 Chrome 和 FireFox 中,而 IE 中没有?

html - Firefox 存储的用户名和密码显示在我的表单中

javascript - exponentialRampToValueAtTime 不能防止在 firefox 中破解