Font Face在IE 7,8中不起作用

时间:2013-01-24 12:17:05

标签: css font-face

我对@ font-face有疑问。在ie7和ie8中它不起作用。在9和其他所有浏览器中都可以使用。

我的代码是:

@font-face {
    font-family: 'KSD-Avenir-Roman';
    src: url('fonts/KSD-Avenir-Roman.eot');
    src: local('?'), url('fonts/KSD-Avenir-Roman.woff') format('woff'), url('fonts/KSD-Avenir-Roman.ttf') format('truetype'), url('fonts/KSD-Avenir-Roman.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'KSD-Avenir-Black';
    src: url('fonts/KSD-Avenir-Black.eot');
    src: url('fonts/KSD-Avenir-Black.eot?#iefix') format('embedded-opentype'),
         url('fonts/KSD-Avenir-Black.woff') format('woff'),
         url('fonts/KSD-Avenir-Black.ttf') format('truetype'),
         url('fonts/KSD-Avenir-Black.svg#open_sans_condensedbold') format('svg');
    font-weight: normal;
    font-style: normal;
}


@font-face {
    font-family: 'KSD-Avenir-Light';
    src: url('fonts/KSD-Avenir-Light.eot');
    src: url('fonts/KSD-Avenir-Light.eot?#iefix') format('embedded-opentype'),
         url('fonts/KSD-Avenir-Light.woff') format('woff'),
         url('fonts/KSD-Avenir-Light.ttf') format('truetype'),
         url('fonts/KSD-Avenir-Light.svg#open_sans_condensedbold') format('svg');
    font-weight: normal;
    font-style: normal;

}

有人可以解决我吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

只是一个猜测,但也许:

src: local('?')

应该是

src: url('fonts/KSD-Avenir-Roman.eot?#iefix')