我将google字体复制到了我的本地。因为花了一些时间来打电话。所以在打电话之前是这样的:
_
当我把它移到本地时,我将3个woff2文件复制到我的本地。现在我看到我的主页正在对woff2文件进行3次单独调用。有没有办法创建一个woff2文件?或者只对所有woff2文件进行单个调用?
答案 0 :(得分:0)
您无需下载字体即可在首页上使用该字体。相反,可以轻松地将<link>
添加到您的<html>
结构中:
<html>
<head>
<link src='https://fonts.googleapis.com/css?family=Open+Sans:400,800,700,600,300' rel='stylesheet' type='text/css'>
<head>
<body>
<style>
* { font-family: 'Open Sans'; }
h1 { font-weight: 800; }
p { font-weight: 300; }
</style>
<h1>Headline</h1>
<p>Paragraph</p>
</body>
</html>