大佬教程收集整理的这篇文章主要介绍了css – Font Face在IE8中无法正常工作,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@font-face{ font-family:portagolTc; src: url(../font/PortagoITC_TT.woff?) format('woff'); src: url(../font/PortagoITC_TT.eot?#iefiX) format('opentype'); }
这在chrome,ff,IE10,IE9,但不是IE8!我在这里做错了什么?如果我做错了,请纠正我.
注意:我已经google了,发现几个stackoverflow答案,但没有什么似乎解决了我的问题.
CSS3111: @font-face encountered unknown error. PortagoITC_TT.woff CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable. PortagoITC_TT.ttf CSS3114: @font-face failed OpenType embedding permission check. Permission must be Installable. PortagoITC_TT.ttf
要解决这个问题,您需要编辑您的字体文件,为“Fontname”,“Family name”和“name”为人类定义相同的名称,并导出TTF.这可以使用FontForge应用程序完成.之后,您再次将其转换为网络(EOT,WOFF).
更多信息:http://fontface.codeandmore.com/blog/ie-7-8-error-with-eot-css3111/
更新
通过下载自己的TTF字体版本并将其转换为网络,使其工作.我使用的CSS
@font-face { font-family: 'portagoitc-tt'; src: url('fonts/portagoitc-tt.eot'); src: url('fonts/portagoitc-tt.eot?iefix') format('opentype'),url('fonts/portagoitc-tt.woff') format('woff'),url('fonts/portagoitc-tt.ttf') format('truetype'); font-weight: normal; font-style: normal; }
以上是大佬教程为你收集整理的css – Font Face在IE8中无法正常工作全部内容,希望文章能够帮你解决css – Font Face在IE8中无法正常工作所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。