我的一个网站的 font-squirrel 生成 @font-face 代码有问题。该字体在 Internet Explorer 7 中不显示。在其他浏览器中它工作得很好。
地址是:http://www.mrsherskin.com http://www.mrsherskin.com
@font-face {
font-family: 'PFRondaSeven';
src: url('font/pf_ronda_seven-webfont.eot');
src: url('font/pf_ronda_seven-webfont.eot?iefix') format('eot'),
url('font/pf_ronda_seven-webfont.woff') format('woff'),
url('font/pf_ronda_seven-webfont.ttf') format('truetype'),
url('font/pf_ronda_seven-webfont.svg#webfont7vFUbybx') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PFRondaSeven';
src: url('font/pf_ronda_seven_bold-webfont.eot');
src: url('font/pf_ronda_seven_bold-webfont.eot?iefix') format('eot'),
url('font/pf_ronda_seven_bold-webfont.woff') format('woff'),
url('font/pf_ronda_seven_bold-webfont.ttf') format('truetype'),
url('font/pf_ronda_seven_bold-webfont.svg#webfont2zOjOL6G') format('svg');
font-weight: bold;
font-style: normal;
}
/* basic font-set */
body { font-family: 'PFRondaSeven'; font-size-adjust: 0.62; }
这很奇怪,因为我有另一个用这种方法制作的网站,它运行得很好。
有什么帮助吗?可能是什么问题呢?
试试这个:
@font-face {
font-family: 'Avenir';
src: url('avenirl8-webfont.eot');
src: local('☺'), url('avenirl8-webfont.woff') format('woff'), url('avenirl8-webfont.ttf') format('truetype'), url('avenirl8-webfont.svg#webfontIFZXxqn6') format('svg');
font-weight: normal;
font-style: normal;
}
当然,用您自己的字体替换字体,并添加粗体字体的声明。它应该有效;)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)