@字体在所有浏览器中显示,但android和IOS除外。已尝试删除和更改mime类型
我无法使用@font字体。除了IOS和android之外,它在所有浏览器中都显示良好 我已通过以下步骤获得以下代码:@字体在所有浏览器中显示,但android和IOS除外。已尝试删除和更改mime类型,android,ios,font-face,Android,Ios,Font Face,我无法使用@font字体。除了IOS和android之外,它在所有浏览器中都显示良好 我已通过以下步骤获得以下代码: @font-face { font-family: 'philly_sansregular'; src: url('phillysansps-webfont.eot'); src: url('phillysansps-webfont.eot?#iefix') format('embedded-opentype'), url('phillysansps-webfont
@font-face { font-family: 'philly_sansregular';
src: url('phillysansps-webfont.eot');
src: url('phillysansps-webfont.eot?#iefix') format('embedded-opentype'),
url('phillysansps-webfont.woff') format('woff'),
url('phillysansps-webfont.ttf') format('truetype'),
url('phillysansps-webfont.svg#philly_sansregular') format('svg');
}
我还在根目录中的.htaccess文件中添加了以下内容:
AddType image/svg+xml svg
AddType image/svg+xml svgz
有人能帮忙吗
有问题的网站是我找到了答案:我没有指定正确的url。由于某种原因,它指向了一个不同的位置,所以我不得不使用完整的URL。我还发现它不能在android和iphone上正常工作的原因是因为只有一定数量的网络安全/移动安全字体