首页 > 解决方案 > 在网站上使用 Century Gothic 或其他字体

问题描述

我对使用 CSS 和 HTML 非常缺乏经验。我正在建立一个网站,我想使用 Century Gothic 字体 - 但我不知道如何“导入它”。

我该怎么做?

标签: htmlcss

解决方案


如果您专门寻找 Century Gothic 字体,那么一种选择是在以下link标签中使用 Adob​​e 的托管版本。如果您要导入其他字体,请参考此链接

html { 
  font-family: century-gothic, sans-serif;
  font-weight: 400;
  font-style: normal;
}
<html>
<head>
  <link rel="stylesheet" href="https://use.typekit.net/oov2wcw.css">
</head>
  This is Century Gothic
</html>


推荐阅读