发现ie8显示不出来字体,折腾了半天,是@font-face的顺序写错了。
正确的应该是这样:
@font-face {
font-family: "yhg";
src: url(../fonts/yhg.eot);
src: url(../fonts/yhg.eot?#iefix) format('embedded-opentype'),
url(../fonts/yhg.woff) format('woff'),
url(../fonts/yhg.ttf) format('truetype'),
url(../fonts/yhg.svg#yhg) format('svg');
font-weight: normal;
font-style: normal;
}