我試圖使用這種字體:http://www.fontsquirrel.com/fontfacedemo/eb-garamond 因此,我下載了類型工具包並將其放置在正確的目錄中。@font not working from fontsquirrel
CSS:
@font-face {
font-family: 'EBGaramondSC';
src: url('/EBGaramondSC-webfont.eot');
src: url('/EBGaramondSC-webfont.eot?#iefix') format('embedded-opentype'),
url('/EBGaramondSC-webfont.woff') format('woff'),
url('/EBGaramondSC-webfont.ttf') format('truetype'),
url('/EBGaramondSC-webfont.svg#EBGaramondRegular') format('svg');
font-weight: normal;
font-style: normal;
}
p.style2 {font: 18px/27px 'EBGaramondSC', Arial, sans-serif;}
HTML: [p class="style2"] Alfab Solutions, LLC is a custom security firm who focuses on rural secruity solutions. We offer rugged, secure camera systems which integrate into our SSL encrypted website. We provide 24/7 access to your security footage, so you can have peace of mind that your assets are safe. [/p] Ignore brackets
螢火蟲甚至不顯示正確的字體圖像。是什麼賦予了?
我有一個奇怪的目錄結構。索引是.php,它是從模板文件生成的。所以我的字體在模板目錄中,因爲它們隻影響那裏的html。
看起來像這樣做。我對Chrome Inspector並不熟悉,但我會看看它。 Firebug沒有向我顯示警告。自從該目錄提供模板以來,我想到了字體也需要在那裏。感謝您解決它。 – Meretrix