我想在我的网站上嵌入字体“gothamcondensed”,但它不工作,我用字体松鼠的@ font-face。我只是移动我的字体在服务器上,并更改网址,但它不工作。字体嵌入不工作
有什么建议家伙?我真的需要一个建议。下面是我的代码:
@font-face {
font-family: 'gothamcondensedbold';
src: url('http://some-url.com/zts-fonts/gothamcondensed-bold_0-webfont.eot');
src: url('http://nx3corp.com/zts-fonts/gothamcondensed-bold_0-webfont.eot?#iefix') format('embedded-opentype'),
url('http://nx3corp.com/zts-fonts/gothamcondensed-bold_0-webfont.woff2') format('woff2'),
url('http://nx3corp.com/zts-fonts/gothamcondensed-bold_0-webfont.woff') format('woff'),
url('http://nx3corp.com/zts-fonts/gothamcondensed-bold_0-webfont.ttf') format('truetype'),
url('http://nx3corp.com/zts-fonts/gothamcondensed-bold_0-webfont.svg#gothamcondensedbold') format('svg');
font-weight: normal;
font-style: normal;
} body {
margin:0;
padding:0;
font-family: 'gothamcondensedbold';
}
是第一个eot的“http:// some-url.com”正确吗?或者仅仅是一个示例占位符 – 2014-11-21 14:12:15
是否在控制台中出现错误? '没有'访问控制允许起源' – 2014-11-21 14:23:54
是的网址是正确的我能够从网址下载字体 – Matt 2014-11-21 14:33:38