Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
@字体在所有浏览器中显示,但android和IOS除外。已尝试删除和更改mime类型_Android_Ios_Font Face - Fatal编程技术网

@字体在所有浏览器中显示,但android和IOS除外。已尝试删除和更改mime类型

@字体在所有浏览器中显示,但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字体。除了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.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上正常工作的原因是因为只有一定数量的网络安全/移动安全字体