不知道为什么显示出来没效果?
求解答啊~~~~我弄了半天也没用
人生最曼妙的风景,竟是内心的淡定与从容!
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
../xxx.otf
xxx.otf
The font path is a relative CSS path
If you don’t want to specify a relative path, the font file needs to be placed in the same path as ccmain.css.
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.
Font files and cascading style sheet files must be in the same folder.
You have a fonts folder, why not put it in this folder, and then ../fonts maybe your path is wrong?
Two problems1. Relative path error2. When specifying a font, the font type should be added at the end
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 ofxxx.otf
The font path is a relative CSS path
If you don’t want to specify a relative path, the font file needs to be placed in the same path as ccmain.css.
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.
Font files and cascading style sheet files must be in the same folder.
You have a fonts folder, why not put it in this folder, and then ../fonts maybe your path is wrong?
Two problems
1. Relative path error
2. When specifying a font, the font type should be added at the end