PHP中文网2017-04-17 11:33:54
If you write in CSS, then you should write the path relative to the CSS, not the page (otherwise, pages in different directories must not go crazy?)
../xxx.otf
instead of xxx.otf
伊谢尔伦2017-04-17 11:33:54
If you don’t want to specify a relative path, the font file needs to be placed in the same path as ccmain.css.
伊谢尔伦2017-04-17 11:33:54
url../Return to the previous level and select the font file path. It is recommended to install plug-ins with recommended paths. On the one hand, it is efficient and on the other hand, it ensures correctness.
PHP中文网2017-04-17 11:33:54
Font files and cascading style sheet files must be in the same folder.
高洛峰2017-04-17 11:33:54
You have a fonts folder, why not put it in this folder, and then ../fonts maybe your path is wrong?
怪我咯2017-04-17 11:33:54
Two problems
1. Relative path error
2. When specifying a font, the font type should be added at the end