Home >Web Front-end >CSS Tutorial >Describe fonts used in CSS documents
To describe a font, use the @font-face rule. You can try running the following code to set the font -
<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>
The above is the detailed content of Describe fonts used in CSS documents. For more information, please follow other related articles on the PHP Chinese website!