Jos*_*idt 3 html css internet-explorer font-face custom-font
我想要显示自定义字体"Duke-Fill"的网页是http://www.hamlinforcongress.com/helpout.php
我正在使用:
@font-face {
font-family: 'header_font';
src: url('Duke-Fill.eot?#iefix') format('embedded-opentype'),
url('Duke-Fill.woff') format('woff'),
url('Duke-Fill.ttf') format('truetype'),
url('Duke-Fill.svg#svgFontName') format('svg');
}
.header_font{
font-family: header_font;
}
Run Code Online (Sandbox Code Playgroud)
我已经尝试了我可以在互联网上找到的所有其他建议,但没有任何东西可以在Internet Explorer中显示自定义字体.它在所有其他可以想象的浏览器中都能很好地工作,但不是IE(惊喜).救命?
@font-face {
font-family: 'NimbusSanConD-Lig';
src: url('fonts/228BFB_1_0.eot');
src: url('fonts/228BFB_1_0.eot?#iefix') format('embedded-opentype'),
url('fonts/228BFB_0_0.woff') format('woff'),
url('fonts/228BFB_0_0.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)
此代码适用于IE.它是使用Font Squirrel生成的