<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS引用外部字体,测试成功</title>
<style>
  @font-face {font-family: DIN_Condensed_Bold;src: url('../font/DIN_Condensed_Bold.ttf');}
  .myfont1{ font-family:DIN_Condensed_Bold;}
  @font-face {font-family: DINPro-Regular;src: url('../font/DINPro-Regular.otf');}
  .myfont2{ font-family:DINPro-Regular;}
  @font-face {font-family: Futurak;src: url('../font/Futurak.ttf');}
  .myfont3{ font-family:Futurak;}
</style>
</head>

<body>
  <h1 class="myfont1">testtesttesttesttesttest</h1>
  <h1 class="myfont2">testtesttesttesttesttest</h1>
  <h1 class="myfont3">testtesttesttesttesttest</h1>
  <h1>testtesttesttesttesttest</h1>
</body>
</html>

相关文章:

  • 2021-08-22
  • 2022-01-19
  • 2021-12-01
  • 2022-12-23
  • 2021-05-22
  • 2021-12-27
  • 2022-12-23
  • 2021-05-01
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案