HTML
<span style="font-family: 'blackjackregular'; font-size: 18pt;">My</span>
<span style="font-family: 'trajanpro'; font-size: 14pt;">WEST</span>
字体CSS:
@font-face {
font-family: 'trajanpro';
src: url('trajanpro-regular.eot');
src: url('trajanpro-regular.eot?#iefix') format('embedded-opentype'),
url('trajanpro-regular.woff') format('woff'),
url('trajanpro-regular.ttf') format('truetype'),
url('trajanpro-regular.svg#trajanpro_regular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'blackjackregular';
src: url('blackjar-webfont.eot');
src: url('blackjar-webfont.eot?#iefix') format('embedded-opentype'),
url('blackjar-webfont.woff') format('woff'),
url('blackjar-webfont.ttf') format('truetype'),
url('blackjar-webfont.svg#blackjackregular') format('svg');
font-weight: normal;
font-style: normal;
}
IE显示:
FF和Chrome显示:
如你所见,无论在IE还是其他浏览器中,MY都是正确的,但为什么WEST在IE中不改变字体呢?