【问题标题】:Google fonts: special characters (arrows) not showing in IE10Google 字体:IE10 中未显示特殊字符(箭头)
【发布时间】:2013-10-17 03:38:26
【问题描述】:

http://jsfiddle.net/Praak/

在不同的浏览器中尝试,只有IE不会为←→应用“Source Sans Pro”字体。 删除 text 参数可以修复它,但我只需要这个字体的 2 个箭头并且不想加载所有字符。 还有其他解决方法吗?

【问题讨论】:

    标签: fonts internet-explorer-10 webfonts google-webfonts google-font-api


    【解决方案1】:

    在 URL 中使用之前,您必须对特殊字符进行编码。 这里是用于 URL 编码的在线工具www.url-encode-decode.com(不要忘记选择正确的编码,utf-8 或其他)

    ←→url编码后:%E2%86%90%E2%86%92

    使用text=时无需指定subset=参数。

    这是最终的跨浏览器解决方案 http://jsfiddle.net/Praak/2/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-14
      • 2012-03-22
      • 2017-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-12
      • 1970-01-01
      相关资源
      最近更新 更多