html - 在网站上使用 Century Gothic 或其他字体
问题描述
我对使用 CSS 和 HTML 非常缺乏经验。我正在建立一个网站,我想使用 Century Gothic 字体 - 但我不知道如何“导入它”。
我该怎么做?
解决方案
如果您专门寻找 Century Gothic 字体,那么一种选择是在以下link
标签中使用 Adobe 的托管版本。如果您要导入其他字体,请参考此链接。
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>
推荐阅读
- c# - 如何将图像从 UWP 发布到 .NET 核心 Web api?
- voltdb - 从 VoltDB 定期运行 VoltDB 存储过程
- python - PyQt 5.10 - 为 MacOS 启用高 DPI 支持,像素图质量差
- meshlab - MeshLab:如何实现各个组件的信息
- apache-spark - 生产 Spark Pipeline
- swift - 将文本输入保存到设备
- python - 在达到一定的准确性后,有什么方法可以停止在 Keras 中训练模型?
- mongodb - React Fullstack 应用程序显示 mongodb 连接错误
- android - 尝试从图像文件中解码位图并发送到服务器
- java - 动态更改 side_nav_bar.xml 形状颜色的颜色