CSS 中的 Web 字体
cssweb developmentfront end technology更新于 2024/3/12 17:48:17
Web 字体用于允许使用 CSS 中本地系统上未安装的字体。
示例
以下代码展示了字体样式的示例代码:
<html>
<head>
<style>
@font-face {
font-family: myFirstFont;
src: url(/css/font/SansationLight.woff);
}
div {
font-family: myFirstFont;
}
</Style>
</head>
<body>
<div>This is the example of font face with CSS3.</div>
<p><b>Original Text :</b>This is the example of font face with CSS3.</p>
</body>
</html>
输出

相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

