如何在HTML页面中使用Google字体 [英] How do I use Google Fonts in a HTML page

查看:605
本文介绍了如何在HTML页面中使用Google字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到有人在他们的网站中使用Google字体。如何在我的网站中使用Google字体?我使用正常的字体,如Arial和Verdana,但我想使用Source Sans Pro和Ubuntu字体。我要做什么?

解决方案

1)转到 https://www.google.com/fonts#



2)在顶部的框中搜索字体名称

3)点击添加到收藏



4)点击使用



5)选择字体权重



6)复制下面的链接标签,并将其插入 ; head> 您网站的部分



希望这有助于



快乐编码


I have seen people use Google Fonts within their websites. How do I use Google Fonts within my website? I am using normal fonts such as Arial and Verdana but i want to use Source Sans Pro and Ubuntu fonts as well. What do I do?

解决方案

1)go to https://www.google.com/fonts#

2) search the font names in the box on top left corner

3) click on add to collection

4) click use

5) select the font weights

6) copy the link tag populated below that and insert it into the <head> section of your website

Hope this helps

Take care and happy coding

这篇关于如何在HTML页面中使用Google字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆