gpt4 book ai didi

css - @font-face 不适用于 FF4

转载 作者:太空宇宙 更新时间:2023-11-03 19:17:44 25 4
gpt4 key购买 nike

我正在使用 @font-face 来嵌入一些字体,在 Chrome、Safari 等平台上一切正常。由于某种原因,它不适用于 FF4。我找遍了,找不到任何东西。我发现了一些与使用 CDN 相关的问题,但这并不适用于我。 thewell.newcoastmedia.com 网站,我将添加我正在使用的代码。如果重要的话,我正在使用 WordPress

CSS:

@font-face {
font-family: LeagueGothicRegular;
src: url('league_gothic-webfont.eot'); /* IE9 Compat Modes */
src: url('league_gothic-webfont.eot?iefix') format('eot'), /* IE6-IE8 */
url('league_gothic-webfont.woff') format('woff'), /* Modern Browsers */
url('league_gothic-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('league_gothic-webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
font-weight: normal;
font-style: normal;
}

我的 .htaccess 文件:

# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php

<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*thewell.newcoastmedia.com"
</IfModule>
</FilesMatch>

AddType image/svg+xml svg svgz
AddEncoding gzip svgz
AddType application/vnd.ms-fontobject eot
AddType font/truetype ttf
AddType font/opentype otf

AddType application/x-font-woff woff

最佳答案

svg 在哪里?:

<FilesMatch "\.(ttf|otf|eot|woff|font.css)$">

我正在使用 Font Squirrel 中的样式表它们适用于所有浏览器。

关于css - @font-face 不适用于 FF4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5719366/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com