自定义字体,EOT,不起作用

编程入门 行业动态 更新时间:2024-10-10 11:20:53
本文介绍了自定义字体,EOT,不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我无法在IE7和IE8中使用自定义字体:

I cant get my custom fonts to work in IE7 and IE8:

i-creative.dk/iJob/

它在IE9,Firefox和Chrome中正常运行...

It works fine in IE9, Firefox and Chrome...

对于Firefox和Chrome,字体为TTF对于IE,它在EOT中

For Firefox and Chrome the fonts are in TTF And for IE, it's in EOT

但是,它仅在IE9中有效:(

However, it only works in IE9 :(

推荐答案

尝试改用此CSS格式:

Try this css formatting instead:

@font-face { font-family: 'fontName'; src: url('/path/to/font.eot?') format('eot'), url('/path/to/font.otf') format('otf'), url('/path/to/font.ttf') format('truetype'); }

这就是我使用的(代替otf,woff和svg).而且我从未有任何IE无法呈现字体.

This is what I use (sans the otf, woff & svg instead). and I have never had any of the IE's not render the font.

更多推荐

自定义字体,EOT,不起作用

本文发布于:2023-11-02 06:03:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1551569.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   不起作用   字体   EOT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!