【发布时间】:2014-04-30 03:40:19
【问题描述】:
我已经连续 3 天一直在寻找答案(不过我确实睡了几个小时)。
我正在使用一个 wordpress 主题,它可以流畅地集成字体真棒图标。但我想更改这些图标并使用我自己的,但它们不会在 Firefox 中显示,但会在 Safari、Chrome 等中显示。
我正在使用此 css 代码将图标更改为我自己的图标:
.fa-euro:before {content:url(http://nip10.nl/xtra-icons/icon-2.png);}
.fa-glass:before {content:url(http://nip10.nl/xtra-icons/icon-1.png);}
.fa-bell:before {content:url(http://nip10.nl/xtra-icons/icon-3.png);}
.fa-coffee:before {content:url(http://nip10.nl/xtra-icons/icon-4.png);}
您可以在此处查看网站:www.nip10.nl
希望有人能告诉我如何更改 css 代码,以便图标也显示在 FireFox 中。我尝试过从命名图像到 .jpg 文件等任何方法。
【问题讨论】:
-
您是否尝试过使用
fa-euro::before {content:url(http://nip10.nl/xtra-icons/icon-2.png);}.?双冒号就是。 -
嗨,吉米,感谢您的回复,我现在要试试这个:-$
-
不,不幸的是没有做到这一点