css3 @font-face

Before css3, only fonts installed on the computer could be used

CSS3 introduced @font-face to facilitate the use of custom fonts.

usage:

@font-face{
 font-family:custom name;
 src:url('font location')
}

any tag {
  font-family:custom name;  
}

Support for each browser

Internet Explorer: EOT

FireFox:OTF/TIF/WOFF

Chrome:TIF/SVG/WOFF

Safari:OTF/TIF/SVG

Opera:OTF/TIF/SVG

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326081321&siteId=291194637