我在freecodecamp.com上做了第15課,但我似乎無法完成它。目標是讓我的h2元素使用字體'龍蝦',同時保持等寬。我應該複製「http://fonts.googleapis.com/css?family=Lobster'rel ='stylesheet'type ='text/css'>」。這是我寫的代碼:在freecodecamp.com上導入google字體
<style>
.red-text {
color: red;
}
p {
font-size: 16px;
font-family: Monospace;
}
</style>
<style>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
</style>
<h2 class='red-text'>CatPhotoApp</h2>
<p class='red-text'>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class='red-text'>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
這是如何使'H2'元素使用'龍蝦'? – Bond
ooooops!更新... –