【发布时间】:2015-09-15 04:50:51
【问题描述】:
我正在 freecodecamp.com 上上第 15 课,但我似乎无法完成它。目标是让我的 h2 元素使用 'Lobster' 字体,同时保留 Monospace。我应该复制“http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>”。这是我写的代码:
<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>
【问题讨论】:
标签: html css google-font-api