freecodecamp.cn icon indicating copy to clipboard operation
freecodecamp.cn copied to clipboard

按照教程中使用gdgdocs的链接可以正常引入字体,但是设置class属性后,仍然提示p标签内字体不正确。

Open wlxfx opened this issue 9 years ago • 1 comments

Challenge Import a Google Font has an issue. User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

<link href="https://fonts.gdgdocs.org/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;font-family:Lobster;
  }

  .op{color:blue;
    font-size:16px;
    font-family:Lobster;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p  class="red-text">在googleapi</p>
<p  class="red-text">重创。abcdefg</p>

wlxfx avatar Dec 17 '16 08:12 wlxfx

仔细看题目的报错,段落的字体仍需设置为Monospace

p {
    font-family: Monospace;
  }

discountry avatar Dec 19 '16 10:12 discountry