【问题标题】:Google Fonts appearing as Comic Sans?谷歌字体显示为 Comic Sans?
【发布时间】:2014-06-08 02:13:37
【问题描述】:

我目前正在重新设计一个网站,但无法正确显示 Google Font API。我想显示“Short Stack”或“Permanent Marker”,但两者都显示为漫画无字体......有人可以帮忙吗? Here 是网站。

【问题讨论】:

  • 我看不到任何 Comic Sans
  • 顺便说一句,文字很难看,很小,字体也很难看
  • 我这边没有 Comic Sans

标签: css fonts


【解决方案1】:

它阻止样式表并显示一条消息。

[blocked] The page at 'https://www.toontowninfinite.com/inc/pages/home.php' was loaded over HTTPS, but ran insecure content from 'http://fonts.googleapis.com/css?family=Permanent+Marker': this content should also be loaded over HTTPS.

https://www.toontowninfinite.com/inc/pages/home.php中使用安全HTTP

<link href='https://fonts.googleapis.com/css?family=Permanent+Marker' rel='stylesheet' type='text/css'>
                ^    

【讨论】:

    【解决方案2】:

    问题是您正在通过 https 加载页面,但 google 字体来自 http(因此被认为是不安全的连接并被阻止)。见下图:

    更改谷歌字体以通过 https 加载,你应该很高兴。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-17
      • 2010-10-27
      • 2017-02-01
      • 2020-05-24
      • 2020-01-17
      相关资源
      最近更新 更多