0

に CSS ファイル/cssと にフォントがあります/images。私のCSSコードは@font-face.

@font-face {
    font-family: 'ChunkFiveRegular';
    src: url('../image/chunkfive-webfont.eot');
    src: url('../image/chunkfive-webfont.eot?#iefix') format('embedded-opentype'), url(../images/chunkfive.woff) format('woff'), url(../images/chunkfive-webfont.ttf) format('truetype'), url(../images/chunkfive-webfont.svg) format('svg');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3 {
    font-family: ChunkFiveRegular, Georgia, serif;
    font-weight: normal;
    text-transform: uppercase;
}

テキストがまだジョージアとして表示されるのはなぜですか?

4

2 に答える 2

1

フォントが にある場合は、 ではなく/imagesを使用する必要があります。とはいえ、あなたのフォントは;に属しています。フォントは画像ではありません。/images/image/css

また、ポール アイリッシュの記事によると、 (未テスト)'eot'よりもうまく機能するはずです。'embedded-opentype'

于 2012-07-17T14:49:18.070 に答える
0

http://www.thecssninja.com/demo/css_fontface/

@font-face {
font-family:InYourFace;
src: url('Ubuntu-B.eot');
// this smile and ? fix your problem
// because IE don't wanl load local font without this hack
src: url('Ubuntu-B.eot?') format('☺'),  
    url('Ubuntu-B.woff') format('woff'),
    url('Ubuntu-B.ttf') format('truetype'),
    url('Ubuntu-B.svg#webfontssbCkuz5') format('svg');
}
于 2012-07-17T09:50:50.553 に答える