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

段落仍旧使用字体Monospace????求救

Open zmGiser opened this issue 9 years ago • 2 comments

Challenge Import a Google Font has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0. 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;
  }
  h2{
    font-family:Lobster;
  }

   p{
    font-family: Lobster;
  }
</style>

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

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

zmGiser avatar Dec 10 '16 13:12 zmGiser

按照题目要求书写CSS即可 段落指的即是p标签

discountry avatar Dec 19 '16 10:12 discountry

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

sausagehwx avatar Feb 12 '17 16:02 sausagehwx