0
 @font-face {
    font-family: "England Hand";
    src:  url("fonts/englandhand.eot?#iefix") format("embedded-opentype"),url("fonts/englandhand.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

私はフォントスタイルとして上記を持っています。ページの本文に含まれています。フォント ファミリを div に追加していないため、そこにレンダリングされます。この div のクローンを作成して別の位置と ID を割り当てると、フォントのレンダリングが停止します。

コンソールにもエラーはありません。このエラーは IE 8 でのみ発生し、IE 9 では問題なく動作します。

解決方法 js エラーに注意してください。確かにそこには問題につながるものがあります

4

1 に答える 1

0

IE8/IE9をサポートするためのプレフィックスが不足していると思います。コードは次のようになっている必要があります。

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

}
于 2013-02-15T11:38:19.530 に答える