Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

อธิบายลักษณะแบบอักษรสำหรับใช้ในเอกสารใน CSS


หากต้องการอธิบายลักษณะแบบอักษร ให้ใช้กฎ @font-face คุณสามารถลองเรียกใช้รหัสต่อไปนี้เพื่อตั้งค่าแบบอักษร -

ตัวอย่าง

<style>
   <!--
      @font-face {
         font-family: "Scarborough Light";
         src: url("https://www.font.site/s/scarbo-lt");
      }

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