下面的@ font-face聲明很完善的Firefox(蘋果),但Safari瀏覽器/ WebKit的:@ font-face聲明適用於Firefox,但不適用於Safari/WebKit?
@font-face {
font-family:MyGaramond;
src:local("Garamond Premier Pro"), /* Full name */
local("GaramondPremrPro"), /* Postscript name */
url("GaramondPremrPro.otf") format("opentype"); /* Fallback */
}
h2 {
font-family:MyGaramond, sans-serif !important;
}
爲了澄清,我也試着:
@font-face {
font-family:MyGaramond;
src:local("Garamond Premier Pro"), /* Full name */
local("GaramondPremrPro"), /* Postscript name */
url("GaramondPremrPro.otf"); /* Fallback */
}
h2 {
font-family:MyGaramond, sans-serif !important;
}
,有/無報價等
有沒有其他人經歷過,如果是的話,你是如何解決它?這不起作用真是莫名其妙(而且有點刺激......)。
這裏試過頂部代碼快速簡單的html的我做了,它在Sarafi 4.0.4 Windows下效果不錯。 – 2010-02-19 21:17:27