0

我对@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;

}

有人可以修复我吗?

谢谢!

4

1 回答 1

0

只是一个猜测,但也许:

src: local('?')

应该

src: url('fonts/KSD-Avenir-Roman.eot?#iefix')
于 2013-01-24T15:03:39.113 回答