【问题标题】:firefox for android not showing css utf8-symbols适用于 android 的 firefox 不显示 css utf8-symbols
【发布时间】:2014-12-15 20:18:29
【问题描述】:

我在我的网站上使用来自 utf8icons.com 的 utf8 字符/符号。即使我在 firefox 菜单中选择了unicode,下面的符号也不会显示在 android 上的 firefox (34.0) 中。我只得到一个灰色方块。

在桌面版firefox和chromium上,正确显示:

.timedark:before {
    content: '\25D4';
    padding-left: 3px;
    color: #222;
}

这里有什么问题?

【问题讨论】:

    标签: android css firefox utf-8


    【解决方案1】:

    正在使用的字体不包含字符的字形,浏览器尝试使用的任何后备字体也不包含。原因很可能是系统中没有一个字体包含这个字符。选项是使用通过@font-face 下载的字体和使用图像来代替。

    【讨论】:

    • 我忘了提到我使用的是谷歌字体中的“PT Serif”。字体在桌面浏览器中显示符号。编辑器 geany 还将 scss 和 css 文件显示为 utf-8 编码
    • @hnes,PT Serif 不包含此字符,请参阅google.com/fonts/specimen/PT+Serif,因此您必须以其他字体看到它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-01-31
    • 1970-01-01
    • 2018-05-05
    • 2015-02-20
    • 1970-01-01
    • 2019-01-11
    • 2015-01-02
    相关资源
    最近更新 更多