font-family - 我引入CSS3自定义字体没有效果?
黄舟
黄舟 2017-04-17 11:31:54
0
7
577

不知道为什么显示出来没效果?

求解答啊~~~~我弄了半天也没用

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(7)
洪涛

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

PHPzhong

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template