0

作業中のイントラネットWebサイトでカスタムCSSフォントを使用しようとしていますが、InternetExplorerはそれを無視します。

誰か助けてもらえますか?

@font-face {
  font-family: "samaritans-webfont";
  font-style: normal;
  font-weight: normal;
  src:url("/smresources/fonts/samaritans-webfont.eot?iefix") format("embedded-opentype"), 
  url("/smresources/fonts/samaritans-webfont.woff") format("woff"), 
  url("/smresources/fonts/samaritans-webfont.ttf") format("truetype"), 
  url("/smresources/fonts/samaritans-webfont.svg#samaritans-webfont") format("svg");
}
4

2 に答える 2

1

あなたがIE9を使用している場合 -

@font-faceを IIS サーバーで使用すると、IE9 ユーザーにはフォントが表示されない場合があります。これは 2 つの方法で解決できます。1) MIME タイプのリストに WOFF 形式を追加します。または 2) format('eot') 部分を format('embedded-opentype') に変更します。どちらも IE9 の問題を解決します。

新しい Bulletproof @Font-Face 構文

于 2012-09-25T13:59:40.837 に答える
0

IE のバージョンに応じて、さまざまなサポートがあります。

注: http://caniuse.com/#feat=fontface IE のさまざまなバージョンのサポートが異なることがわかる場合は、IE 6 を使用している場合は、Web フォントを機能させるために追加のハックが必要になります。

于 2012-09-25T13:54:50.667 に答える