如何使用 CSS,在下載中定義字型的位置


@font-face 規則用於定義供下載的字型的位置,儘管它可能會遇到特定於實現的限制。

示例

讓我們來看一個示例

<style>
   <!--
      @font-face {
         font-family: "Scarborough Light";
         src: url("http://www.font.site/s/scarbo-lt");
      }
      @font-face {
         font-family: Santiago;
         src: local ("Santiago"),
         url("http://www.font.site/s/santiago.tt")
         format("truetype");
         unicode-range: U+??,U+100-220;
         font-size: all;
         font-family: sans-serif;
      }
   -->
</style>

更新日期:27-6 月-2020

79 個瀏覽量

開啟你的 職業生涯

透過完成課程獲得認證

開始
廣告
© . All rights reserved.