1

私はすべてを試しましたが、うまくいきません。

これは私の @font-face コードの一部です:

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

Chrome と Safari では動作しますが、IE と Firefox では動作しません。フォントと css は同じドメインにあり、常に相対パスを使用しています。

4

1 に答える 1

1

すべてのフォント形式が IIS サーバー環境に含まれていることを確認してください。IIS には、既定では .woff が含まれていません。EOT、TTF、SVG も存在することを確認します。

于 2012-05-22T15:01:57.197 に答える