谷歌字体 Google Fonts

Google Fonts

获取字体

Google Fonts不再屏蔽,亲测有效。

1、打开Google fonts 访问地址:https://fonts.google.com/

2、点击 + 添加字体

3、点开下方的小弹窗,按照步骤将选择的字体进行应用

使用字体

1、要将所选字体嵌入网页,请将此代码复制到<head>HTML文档中。

//standard
<link href ="https://fonts.googleapis.com/css?family=Lato" rel ="stylesheet">
//@import
<style> 
@import url('https://fonts.googleapis.com/css?family=Lato';
</style>

2、在CSS中指定

使用以下CSS规则指定这些系列:

font-family:'Lato',sans-serif;

3、链接基本规则

https://fonts.googleapis.com/css?family=字体名称

推荐字体

中文字体:

传说中的思源黑体Noto Sans
https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap

PS:中文字体还是推荐微软雅黑啊(Sincerely)

英文字体

  • Lato
  • Open Sans

推荐字体会不定期更新…

Google Fonts 中文版

如果加载不了前面的链接,可以通过中文版[https://www.font.im/]加载

具体做法:将加载链接中的googleapis.com改为font.im

//常规加载
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">

//中文版加载
<link href="https://fonts.font.im/css?family=Lato" rel="stylesheet">

Apple Fonts

苹果字体开发:https://developer.apple.com/fonts/

参考:

  1. https://fonts.google.com
  2. https://developers.google.com/fonts/docs/getting_started
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值