我需要通过@font-face
将字体嵌入网站。我遵循了一些教程,结果它对我不起作用。
CSS:
@font-face{
font-family:'GESSTwoLightRegular';
src:url('../fonts/ge_ss_two_light-webfont.eot');
src: url('../fonts/ge_ss_two_light-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/ge_ss_two_light-webfont.woff') format('woff'),
url('../fonts/ge_ss_two_light-webfont.ttf') format('truetype'),
url('../fonts/ge_ss_two_light-webfont.svg#gess') format('svg'),
url(ge_ss_two_light-webfont.otf) format('opentype');
font-weight:normal;
font-style:normal;
}
最佳答案
试试这个 http://fontface.codeandmore.com/
加载你想在字体中使用的字体,然后这个程序将生成 css 和所有字体类型。
关于css @font-face 根本不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10725849/