0
不工作我一直想一些嵌入字體添加到主題的styles.css文件,由於某種原因,我似乎無法得到字體的工作。我目前的代碼是:嵌入字體WordPress的樣式表
@font-face {
font-family: 'borisblackboxxregular';
src: url('http://blog.abstract-thinking.co.uk/fonts/borisblackboxxregular/borisblackbloxx-webfont.eot');
src: url('http://blog.abstract-thinking.co.uk/fonts/borisblackboxxregular/borisblackbloxx-webfont.eot?#iefix') format('embedded-opentype'),
url('http://blog.abstract-thinking.co.uk/fonts/borisblackboxxregular/borisblackbloxx-webfont.woff') format('woff'),
url('http://blog.abstract-thinking.co.uk/fonts/borisblackboxxregular/borisblackbloxx-webfont.ttf') format('truetype'),
url('http://blog.abstract-thinking.co.uk/fonts/borisblackboxxregular/borisblackbloxx-webfont.svg') format('svg');
}
不過我也試過(只是一條線爲例):
src: url('/fonts/borisblackboxxregular/borisblackbloxx-webfont.eot');
src: url('.../fonts/borisblackboxxregular/borisblackbloxx-webfont.eot');
src: url('borisblackbloxx-webfont.eot');
的字體的物理位置是在幾個地方,根文件夾的安裝,在一個字體/ borisblackboxxregular文件夾結構和在當前應用的主題的根。有人知道我可能做錯了什麼嗎?
由於任何人誰可以回答這個問題。
我可能會問一個愚蠢的問題,但你居然叫一個元素上的字體在你的CSS - 例如'體{字體家庭: 'borisblackboxxregular'; }'?另外,你檢查的開發者控制檯在瀏覽器中看到,如果你得到任何404的的字體? – wickywills
所有選中並重複檢查 - 仍然沒有運氣 –
您使用字體的元素是什麼?發佈該CSS以及 – wickywills