html - ie 8 自定义谷歌字体的问题

标签 html css internet-explorer-8 font-face

我正在研究 site ,使用自定义谷歌字体,但在 ie8 中不起作用或只是部分(左边的内容很好,右边的内容,ajax,不太好)任何建议或想法为什么不太好?

谢谢。

enter image description here

最佳答案

我刚刚在我的IE9的IE8的兼容模式下看到你的网站,我没有看到任何字体问题。 我运行的是 window 7,cna 你可以张贴你的问题的图片吗?

enter image description here

更新:我忘记了一件重要的事情...检查兼容性。 IE7 和 IE8 仅“部分”兼容 font-face。

要解决这个问题,你必须使用类似的代码,并转换字体

@font-face {
font-family: 'MyFontFamily';
src: url('myfont-webfont.eot?') format('eot'), 
     url('myfont-webfont.woff') format('woff'), 
     url('myfont-webfont.ttf')  format('truetype'),
     url('myfont-webfont.svg#svgFontName') format('svg');
}

Google 仅使用 woff,而您还必须加载 eot、trutype 和 svg 以实现完全的跨浏览器兼容性。

您可以轻松转换字体 Font Squirrel , 从下载字体 http://themes.googleusercontent.com/font?kit=tMrhQDUBAHnnGuM33-yobPesZW2xOQ-xsNqO47m55DA

有关此事的更多信息:http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax

关于html - ie 8 自定义谷歌字体的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5472207/

相关文章:

javascript - handlebars js 将 map 打印为表格

html - 使用 html5 地理定位将标记坐标添加到 firebase 实时数据库

jquery - 在 jquery 画廊中切换缩略图和大图像?

css - 如何在 Bootstrap 卡片的右上角设置 IMG?

jquery - 我如何开始使用 jQuery?

html - 绝对定位元素隐藏它前面的透明元素

html - 阻止文本从 div 中泄漏

css - IE8 不加载背景图像和背景颜色 CSS

IE8 中的 JQuery Sliding Div Jerks

javascript - IE8 对象不支持该属性或方法