[英]How to make @font-face compatible in Internet Explorer?
我試圖讓我的字體與 Internet Explorer 兼容。 我的字體適用於除 IE 之外的所有瀏覽器。 我知道 .ttf 和 .otf 文件與 IE 不兼容,但我認為 .eot 文件是。 我看過類似的情況,但我似乎無法理解問題所在。 我當前的代碼如下所示:
@font-face {
font-family: Gotham;
src: url('../Gotham-Book.eot') format('embedded-opentype'),
url('../Gotham-Book.ttf') format('truetype');
}
.ttf 文件工作正常(適用於所有其他瀏覽器),所以我不相信這是文件的路徑。
我已經購買了這種字體並擁有許可證。
使用以下代碼:
@font-face{ /* for IE */
font-family:FishyFont;
src:url(fishy.eot);
}
@font-face { /* for non-IE */
font-family:FishyFont;
src:url(http://....) format("No-IE-404"),url(fishy.ttf) format("truetype");
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.