Home  >  Article  >  Backend Development  >  I want to introduce a font into css, but I’m a little worried that different browsers won’t support it?

I want to introduce a font into css, but I’m a little worried that different browsers won’t support it?

WBOY
WBOYOriginal
2016-08-18 09:15:361127browse

Css I want to introduce a font myself, but I’m a little worried that different browsers won’t support it?

Reply content:

Css I want to introduce a font myself, but I’m a little worried that different browsers won’t support it?

Browsers that support CSS3 all support custom fonts, so go ahead and forget about IE6 and the like

Please send me alternative fonts

Add a few more alternative fonts at the end

Set a few more semicolons. If there is no default, use something else

@font-face I remember that IE5.5+ supports it. Basically all browsers support it

For different browsers, you can choose the default font in multiple formats

Baidu web font conversion tool

There are many online conversion tools that can help you automatically generate multiple fonts

Friendly suggestions:

1.1 Custom fonts are very comfortable to use, but generally font files are relatively large, not to mention Chinese fonts, so it is recommended to only use 1-2 fonts for each page, otherwise the loading speed will be greatly affected

1.2 It’s very cool to use custom font icons, you can check it out

There is nothing to be afraid of, just try quoting it first! Encounter problems and solve them

Statement:
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