我用@fontface 添加了一个 iconfont。唯一的问题是,它在 firefox 下是不可见的。我有最新版本的 Firefox。 Safari 和 Chrome 运行良好。
@font-face {
font-family: 'iconFont';
src: url('../fonts/iconFont.eot');
src: url('../fonts/iconFont.eot?#iefix') format('embedded-opentype'), url('../fonts/iconFont.svg#iconFont') format('svg'), url('../fonts/iconFont.woff') format('woff'), url('/fonts/iconFont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
最佳答案
@font-face {
font-family: 'iconFont';
src: url('../fonts/iconFont.eot');
src: url('../fonts/iconFont.eot?#iefix') format('embedded-opentype'),
url('../fonts/iconFont.woff') format('woff'),
url('../fonts/iconFont.ttf') format('truetype'),
url('../fonts/iconFont.svg#iconFont') format('svg');
font-weight: normal;
font-style: normal;
}
对于字体套件生成,您可以使用:
关于css - 图标字体在 Firefox 中不可见,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14541818/