将谷歌字体添加到HTML

时间:2017-06-03 18:43:05

标签: html fonts

我有html页面,我想在我的页面添加2个谷歌字体。我尝试在一行中添加2种字体:

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lato:300,400|Roboto:400">

但我收到验证错误(validator.w3.org)

Illegal character in query: | is not allowed.

那么可以在一行中添加2个Google字体吗?

1 个答案:

答案 0 :(得分:0)

尝试在进行选择后链接谷歌字体为您生成的内容,因为您在那里看到的内容看起来有点不同。