字体导入不适用于 IE10
Font import not working on IE10
对于一个客户,我必须更改旧应用程序上的字体使用...
它适用于其他浏览器,但不适用于 Internet Explorer(当前版本为 10)...
我在网上找到了很多关于它的东西,但我还是遇到了问题......
对不起,如果我错过了答案:(
这是我导入字体的代码:
@font-face {
font-family: 'Din';
src: url('../fonts/din/DINPro.eot');
src: url('../fonts/din/DINPro.otf') format('truetype'),
url('../fonts/din/DINPro.woff') format('woff'),
url('../fonts/din/DINPro.eot?#iefix') format('embedded-opentype'),
url('../fonts/din/DINPro.svg#QuadrantaBold') format('svg');
font-weight:400;
font-style:normal;
}
对所有拼写错误表示抱歉
正如我们在评论中所说,您需要将字体转换成您需要的所有格式,然后将其包含在代码中(您还没有完整的代码,因此您只需要转换并上传文件)。
我推荐:
IE浏览器需要EOT文件。
对于一个客户,我必须更改旧应用程序上的字体使用... 它适用于其他浏览器,但不适用于 Internet Explorer(当前版本为 10)...
我在网上找到了很多关于它的东西,但我还是遇到了问题...... 对不起,如果我错过了答案:(
这是我导入字体的代码:
@font-face {
font-family: 'Din';
src: url('../fonts/din/DINPro.eot');
src: url('../fonts/din/DINPro.otf') format('truetype'),
url('../fonts/din/DINPro.woff') format('woff'),
url('../fonts/din/DINPro.eot?#iefix') format('embedded-opentype'),
url('../fonts/din/DINPro.svg#QuadrantaBold') format('svg');
font-weight:400;
font-style:normal;
}
对所有拼写错误表示抱歉
正如我们在评论中所说,您需要将字体转换成您需要的所有格式,然后将其包含在代码中(您还没有完整的代码,因此您只需要转换并上传文件)。
我推荐:
IE浏览器需要EOT文件。