简体   繁体   English

Safari中的iPhone上不显示字体

[英]Font doesn't show on iPhone in Safari

My font does not display in Safari on my iPhone. 我的字体未在iPhone的Safari中显示。 I can select and copy the text but I don't see anything? 我可以选择并复制文本,但是什么都看不到?

Here is the font-face code I am using: 这是我正在使用的字体代码:

@font-face {font-family:'TheSerifBoldPlain'; src: url('fonts/TheSerifBoldPlain.eot'); src: url('fonts/TheSerifBoldPlain.eot') format('embedded-opentype'), url('fonts/TheSerifBoldPlain.woff2') format('woff2'), url('fonts/TheSerifBoldPlain.woff') format('woff'), url('fonts/TheSerifBoldPlain.ttf') format('truetype'), url('fonts/TheSerifBoldPlain.svg#TheSerifBoldPlain') format('svg');font-weight: normal;font-style: normal;}

It only doesn't work on iPhone. 它仅在iPhone上不起作用。

i think is because of the .eot extension of your font please check this 我认为是因为您的字体的.eot扩展名,请检查此

http://caniuse.com/#search=eot

using woff is better because it supports different browsers 使用woff更好,因为它支持不同的浏览器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM