引入并应用 google 字体

【参考链接:https://www.w3cschool.cn】

现在, 让我们引入并应用 google 字体 (请注意, 如果 google 在你的国家被阻止, 你需要跳过这一挑战)。

首先,你需要用 link 标签来引入谷歌Lobster字体。

复制以下代码段并将其粘贴到代码编辑器的顶部:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

现在,你可以将 Lobster 作为 font-family属性 的值应用于你的 h2 元素上。

将你的 h2 元素应用 font-family 属性,值为Lobster

posted @ 2019-12-25 16:02  C_XingM  阅读(252)  评论(0)    收藏  举报