Usage of CSS @font-face rule

王林
Release: 2023-08-31 08:45:05
forward
704 people have browsed it

CSS @font-face 规则的用法

@font-face rules are used to describe in detail the fonts used in the document. @font-face can also be used to define where fonts are downloaded, although this may encounter implementation-specific limitations.

Example

<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>
Copy after login

The above is the detailed content of Usage of CSS @font-face rule. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template