admin 发表于 2024-5-25 18:53:51

前端需要学会使用google字体

在html文档中引入如下代码:
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">写一段如下的html代码片段:
<style>
h2{font-family:Lobster;}
</style>
<h2 class="red-text">CatPhotoApp</h2>运行结果效果如下:


页: [1]
查看完整版本: 前端需要学会使用google字体