我尝试了各种代码来嵌入自定义字体,最后似乎在上面的 FF 和 IE8 中工作。但在 IE7 中不支持。
@font-face {
font-family: 'xyzfont';
src: url('fonts/abc-font.eot?') format('eot'),
url('fonts/abc-font.woff') format('woff'),
url('fonts/abc-font.ttf') format('truetype');
}
h1, h2, h3, div span { font-family: 'xyzfont', Georgia, Arial; }
任何使其更兼容的建议(例如 IE7)都非常受欢迎。