css字体代码不适用于IE7/8

css字体代码不适用于IE7/8,css,internet-explorer,fonts,internet-explorer-7,font-family,Css,Internet Explorer,Fonts,Internet Explorer 7,Font Family,我使用font squirrel生成web字体并为字体指定CSS声明,但当我使用IE7或IE8浏览器和文档模式在IE9中查看页面时,它仍然使用回退字体。知道发生了什么吗?以下是我的代码(和截图): 代码没有问题,问题似乎在于字体。但是如果您愿意,它是打开的。检查您的src路径是否正确 src: url('../fonts/cubano/cubano/../fonts/cubano/cubano-regular-webfont.woff-webfont.eot'); src: url('.

我使用font squirrel生成web字体并为字体指定CSS声明,但当我使用IE7或IE8浏览器和文档模式在IE9中查看页面时,它仍然使用回退字体。知道发生了什么吗?以下是我的代码(和截图):


代码没有问题,问题似乎在于字体。但是如果您愿意,它是打开的。

检查您的
src
路径是否正确

src: url('../fonts/cubano/cubano/../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');
    src: url('../fonts/cubano/cubano-regular-webfont.woff-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.woff') format('woff'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.ttf') format('truetype'),
        url('../fonts/cubano/cubano-regular-webfont.woff-webfont.svg#../fonts/cubano/cubanoregular') format('svg');
可能需要

src: url('../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');
src: url('../fonts/cubano/cubano-regular-webfont.woff-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/cubano/cubano-regular-webfont.woff-webfont.woff') format('woff'),
    url('../fonts/cubano/cubano-regular-webfont.woff-webfont.ttf') format('truetype'),
    url('../fonts/cubano/cubano-regular-webfont.woff-webfont.svg#../fonts/cubano/cubanoregular') format('svg');

如果您在上面输入的代码是准确的,那么唯一的问题是您到
eot
文件的路径不正确:

src: url('../fonts/cubano/cubano/../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');...

解决这个问题,它应该可以正常工作。IE从第5版开始就支持
@font-face
,但在9之前的版本中只支持它。

我甚至尝试了typekit,但它不起作用……可能是因为我在IE7模式下通过IE9看到了这一点?因为我在mac上通过并行机使用windows?
src: url('../fonts/cubano/cubano/../fonts/cubano/cubano-regular-webfont.woff-webfont.eot');...