css中的自定义字体

158 次浏览 1 分钟阅读 0 个喜欢
<!DOCTYPE html>
<html>
<head>
    <title>自定义字体</title>
    <style type="text/css">
        body{
            font-family: 'IF';
        }
        @font-face{
            font-family: 'IF';
            src: url('./SetoFont-1.ttf');
        }
    </style>
</head>
<body>
hello world
</body>
</html>

屏幕快照 2019-11-12 下午9.50.15.png图片暂时无法加载