Css 字体不适用于safari
我在我的项目中使用@font-face规则。以下是我在css中使用的内容:Css 字体不适用于safari,css,safari,font-face,Css,Safari,Font Face,我在我的项目中使用@font-face规则。以下是我在css中使用的内容: @font-face { font-family: 'BHoma'; src: url('fonts/BHoma.eot?#') format('eot'), url('fonts/BHoma.woff') format('woff'), url('fonts/BHoma.ttf') format('truetype'); } 对于除Safari之外的所有浏览器,都可以正常加载。字体
@font-face
{
font-family: 'BHoma';
src: url('fonts/BHoma.eot?#') format('eot'),
url('fonts/BHoma.woff') format('woff'),
url('fonts/BHoma.ttf') format('truetype');
}
对于除Safari之外的所有浏览器,都可以正常加载。字体位于名为“字体”的文件夹中,该文件夹与css文件位于同一文件夹中,网站语言为波斯语。我不知道如何调试这个问题。有谁能指出需要做些什么才能让它们为Safari服务吗?将@charset“UTF-8”添加到cssfile的顶部