是否有可能使用絕對路徑與@fontace?
我有如下的目錄結構:字體面使用絕對路徑
-HP
|--font
| |- Monoton.woff
| |- Monoton.eot
|--css
| |- font.css
| |- fontface.css
|--html
|-index.html
定義的字體面
@font-face {
font-familiy: Monoton;
src: url('../font/Monoton.woff') format('woff'); // EDIT: Change fonts to font the name of th woff-file
font-weight: normal;
font-style: normal;
}
,並用它在作爲類單調的css:
@import url('fontFace.css');
.monoton {
font-familiy: Monoton, cursive;
font-size: 1.875em;
color: rgba(0, 200, 0, 1);
}
但它不適用於鉻,Firefox和co。有人可以解釋我爲什麼嗎? 我已經把fontFace.css
和所有的字體文件放在html目錄下。現在,它會運行
請給一個鏈接到您的網頁,使我們可以看看會發生什麼。 – MrUpsidown
Actuell它只有離線可用...在幾天內我添加一個鏈接到網站 – Andreas
請告訴我你在哪裏使用<絕對路徑>? –