2017-02-04 2 views
1

ich die folgende Struktur in einer Website mit:font-family funktioniert nicht in CSS obwohl die Struktur in Ordnung ist

  • Wurzel
    • Thema
      • index.html
    • Werte
      • MyFont
        • css
          fontiran.css und style.css
        • Schriftarten
          IRANSansWeb.eot, IRANSansWeb.woff, IRANSansWeb.woff2 und IRANSansWeb.ttf

und der Inhalt:

index.html:

[...] 
<link href="../assets/myfont/css/style.css" rel="stylesheet"> 
[...] 

style.css:

@import url(fontiran.css); 
body { 
    font-family: IRANSans !important; 
} 

fontiran.css:

@font-face { 
    font-family: IRANSans; 
    font-style: normal; 
    font-weight: normal; 
    src: url('../fonts/IRANSansWeb.eot'); 
    src: url('../fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'), 
     url('../fonts/IRANSansWeb.woff2') format('woff2'), 
     url('../fonts/IRANSansWeb.woff') format('woff'), 
     url('../fonts/IRANSansWeb.ttf') format('truetype'); 
} 

Aber die Schrift nicht funktioniert auf der Internetseite. FontFinder Plugin für Firefox zeigt:

Font 
=============================== 
font-family (stack): IRANSans 
Font being rendered: System Default 
font-size: 13px 

Aber es ist nicht verwendet wird. Was ist das Problem genau?

Antwort

Verwandte Themen