我使用了近 300 种字体,所有 300 种字体在本地主机上都运行良好,但是当我上传到服务器上时,它们不起作用。我正在使用 .ttf 和 .otf 文件消失。 下面是我的示例代码。
/*8Bit font */
@font-face { font-family: 8_bit_1_6 Regular; src: url('fonts/8bit16.TTF'); }
@font-face { font-family: Pixelic War; src: url('fonts/Pixelic War.TTF'); }
@font-face { font-family: PKMN Pinball; src: url('fonts/PKMN-Pinball.TTF'); }
@font-face { font-family: TerrabloX; src: url('fonts/TerrabloX.TTF'); }