djw*_*jwd 7 css fonts internet-explorer font-face
为什么在IE8中呈现此字体:
@font-face {
font-family: 'Aller';
src: url('aller_rg-webfont.eot');
src: url('aller_rg-webfont.eot?#iefix') format('embedded-opentype'),
url('aller_rg-webfont.woff') format('woff'),
url('aller_rg-webfont.ttf') format('truetype'),
url('aller_rg-webfont.svg#AllerRegular') format('svg');
font-weight: normal;
font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)
而这不是:
@font-face {
font-family: 'Champagne';
src: url('champreg-webfont.eot');
src: url('champreg-webfont.eot?#iefix') format('embedded-opentype'),
url('champreg-webfont.woff') format('woff'),
url('champreg-webfont.ttf') format('truetype'),
url('champreg-webfont.svg#Champagne&LimousinesRegular') format('svg');
font-weight: normal;
font-style: normal;
}
Run Code Online (Sandbox Code Playgroud)
我真的无法弄明白.显然,所有其他浏览器工作正常.
Pat*_*ick 32
尝试.eot
使用在线woff/ttf/svg到eot转换器创建一个新文件.
如果这个新文件不起作用,那么它可能是字体本身的问题.如果字体名称和系列名称在实际字体文件中不相同,有时IE6-8会合适.要解决这个问题:
Element
>Font Info
我使用font-face的每个问题 - 如果CSS是正确的 - 使用上述两个解决方案中的一个,那么好运:-)甚至可以尝试保存字体而不需要在FontForge中进行任何更改并在您转换之前在线转换使用名称属性.