我已經完成了儘可能多的搜索谷歌和在這裏,因爲我可能在發佈之前,所以請原諒,如果這很容易回答。也許這只是我遲到的地方,我不知道。爲什麼我的網站上沒有加載我的網絡字體?
該網站是http://artofbackpacking.com
不管我做什麼,在右上角的網頁字體不加載。你會看到我有e001,e002等。他們在我的開發環境中工作,但不在我的現場。字體來自icomoon.io,我使用了那裏建議的CSS。我也嘗試了Base64代碼,但那也沒用。
下面是我在CSS中獲得的一小部分內容。
@font-face {
font-family: 'socialFontsMichael';
src:url('../wp-content/fonts/socialFontsMichael.eot');
src:url('../wp-content/fonts/socialFontsMichael.eot?#iefix') format('embedded-opentype'),
url('../wp-content/fonts/socialFontsMichael.woff') format('woff'),
url('../wp-content/fonts/socialFontsMichael.ttf') format('truetype'),
url('../wp-content/fonts/socialFontsMichael.svg#socialFontsMichael') format('svg');
font-weight: normal;
font-style: normal;
}
感謝幫助。
世界是一個更好的地方,因爲stackoverflow。 – Michael