【问题标题】:Using Google Fonts in FireFox在 FireFox 中使用 Google 字体
【发布时间】:2014-09-28 04:07:15
【问题描述】:

在使用 Firefox 查看网页时,我无法让 google 字体在我的网页上运行。这是html:

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <link rel="stylesheet" type="text/css" href="https://www.google.com/fonts#UsePlace:use/Collection:Lobster">
    <title>Page Title</title>
   </head>
<body>      
    <p style="font-family:Lobster">Hi, this is some test text! </p>
</body>

我还在我的电脑上安装了字体。该字体在 Chrome、Safari 和 IE 中完美显示,但在 Firefox 中不显示。 Firefox 是否需要一些额外的代码才能让自定义字体工作??

【问题讨论】:

  • fonts.googleapis.com/css?family=Lobster">你能用这个吗
  • 谷歌为你生成所有标签,你所要做的就是复制/粘贴它们!

标签: html css firefox fonts


【解决方案1】:

我换行了

&lt;link rel="stylesheet" type="text/css" href="https://www.google.com/fonts#UsePlace:use/Collection:Lobster"&gt;

&lt;link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'&gt;

现在它对我有用

【讨论】:

    猜你喜欢
    • 2014-04-03
    • 1970-01-01
    • 2015-05-02
    • 2014-02-11
    • 2017-10-20
    • 1970-01-01
    • 2016-06-04
    • 2018-06-12
    • 2016-01-05
    相关资源
    最近更新 更多