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

发现有问题,没办法过关

Open anni123456789 opened this issue 9 years ago • 3 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/52.0.2743.116 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

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

  p {
    font-size: 16px;
    font-family: Monospace;
  }
</style>

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

<p class="red-text">在大家心目中,猫是慵懒的可爱的化身,它可以睡饱了再起来吃饭,可以逗趣小耗子,可以卖得了萌,使得了坏,这样百变的小怪兽就集结在一只宠物上,怎能不惹人怜爱。</p>
<p class="red-text">养动物有的时候,就是介于爱与恨之间,当你钦羡别人萌宠这么可爱的时候,你一定没有想过,狗狗和猫猫会到处拉屎,甚至会屯老鼠,啃鞋子,用爪子爬门,你不理它,它就挠你,你要对它发脾气,它会比你更来劲。所以,狗猫慎入,没有一定的准备,切勿随便去侍养动物。它们一旦认定你了,你就是它们的主人,如果你抛弃它们,它们必定心中重创。</p>

anni123456789 avatar Dec 19 '16 03:12 anni123456789

由于国内网络原因,请将字体地址设置为:

https://fonts.gdgdocs.org/css?family=Lobster

discountry avatar Dec 19 '16 10:12 discountry

我觉得这个题目很奇葩,浪费了我很多时间 直到我把h2的字体设置单独写在<h2>单独的样式里

h2 { font-family: Lobster; }

Bacon0546 avatar Feb 03 '17 08:02 Bacon0546

是的,这里不管p标签,只需单独写 h2 { font-family:Lobster;}

sausagehwx avatar Feb 12 '17 16:02 sausagehwx