1

カスタマイズした bootstrap.css の font-face 宣言は次のとおりです。

@font-face {
font-family: 'Glyphicons Halflings';
src: url('../../fonts/glyphicons-halflings-regular.eot');
src: url('../../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

これらのブートストラップ フォントはすべて、私の仮想マシン (192.168.137.4) にあります。ページをロードするとき、IE8 では常にフォントのダウンロードが必要ですが、他のすべてのブラウザー (Chrome、Firefox、および IE9、10、11) では問題はありません。

../../ をこれらのフォントの cdn リンク (例: https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/fonts/glyphicons-halflings-regular.eot )に置き換えようとすると、IE8で完全に機能しましたが、ローカルからロードする必要があります。

この問題を解決するには何が足りないか、何を変更する必要があるか教えてください。

P/S:私はこれらの投稿を参照しましたが、無駄でした:

- https://css-tricks.com/forums/topic/how-to-prevent-ie7-ie8-from-downloading-font-face-files/

- font-face 宣言に使用されるすべての EOT ファイルを IE7 がダウンロードしないようにするにはどうすればよいですか?

4

0 に答える 0