CSS introduces external fonts
@Font-face{font-family: ' YaHei Consolas Hybrid '; SRC: URL (}body{font-family: ' YaHei Consolas Hybrid '; Span class= "Hljs-rule" >font-size: 16px; background: URL (.. /img/bgcontent.png) Repeat; /span>
Different browser fonts are formatted differently
The font suffix is related to the browser, as shown below *. TTF or. OTF, suitable forFirefox 3.5,SafariOpera *. EOT, suitable forInternetExplorer 4.0+ *. SVG, suitable forChromeIPhone For example:@Font-face{Font-family: ' Hanshanditalic ';Src: Url' Fonts/hanshand-webfont.eot ');Src: Url' Fonts/hanshand-webfont.eot? #iefix ')format ('embedded-opentype '), url (' fonts/hanshand-webfont.woff ') format (' Woff '), url ( ' Fonts/hanshand-webfont.ttf ') format ('TrueType '), url (' fonts/hanshand-webfont.svg#webfont34m5alkg ') format (' svg '); font-weight: normal; Font-style: normal;}
CSS introduces external fonts