css @ font-face不能使用firefox [英] css @font-face not working with firefox
本文介绍了css @ font-face不能使用firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下代码适用于Google Chrome测试版以及IE 7,但不适用于firefox。
The following code works in Google Chrome beta as well as IE 7 but not in firefox.
@font-face {
font-family: 'open_sans_semiboldregular';
src: url('../fonts/opensans-semibold-webfont.eot');
src: url('../fonts/opensans-semibold-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/opensans-semibold-webfont.woff') format('woff'),
url('../fonts/opensans-semibold-webfont.ttf') format('truetype'),
url('../fonts/opensans-semibold-webfont.svg#open_sans_semiboldregular') format('svg');
}
推荐答案
试试此
@font-face
{
font-family: 'SegoeUI';
src: url('Fonts/segoeui.eot');
src: url('Fonts/segoeui.eot?#iefix') format('embedded-opentype'), url('fonts/segoeui.ttf') format('truetype');
}
@font-face
{
font-family: 'SegoeLight';
src: url('Fonts/segoeuil.eot');
src: url('Fonts/segoeuil.eot?#iefix') format('embedded-opentype'), url('fonts/segoeuil.ttf') format('truetype');
}
这篇关于css @ font-face不能使用firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文