css - 无法使 Logo 文本(字体)看起来类似于 firefox 呈现的方式(问题是 Internet Explorer)

标签 css cross-browser

我使用 Lobster 字体,在 chrome/firefox/opera/safari 和 internet explorer 中看起来完全不同。

在 IE8, 7 下不可用

您可以在此处查看示例:dev.holiday.ge/xhtml -> 查看 Firefox 与 IE 中的红色 Logo 。

最佳答案

在: dev.holiday.ge/xhtml/all-ie-only.css

你有:

@font-face {
    font-family: 'Lobster';
    src: url('fonts/DroidSans.eot');
}

这应该是这样的:

@font-face {
    font-family: 'Lobster';
    src: url('fonts/Lobster.eot');
    src: url('fonts/Lobster.eot?#iefix') format('embedded-opentype'); /* IE6-IE8 */
}

如果你有.eot

为了获得最佳的字体兼容性,请使用以下语法:

@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
     url('webfont.woff') format('woff'), /* Modern Browsers */
     url('webfont.ttf')  format('truetype'), /* Safari, Android, iOS */   
     url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */

}

关于css - 无法使 Logo 文本(字体)看起来类似于 firefox 呈现的方式(问题是 Internet Explorer),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10372264/

相关文章:

javascript - CSS 和 JS 文件丢失错误

css - 如何在CSS中建立父节点-->节点关系?

css - Windows 上的锯齿状字体 - Chrome 和 Safari

html - 小型跨浏览器兼容性 CSS 问题

html - 如何用三 Angular 形做一个透明的泡泡聊天?

javascript - 使用属于该文本的位置值以编程方式选择 div 中的文本

html - HTML 表格中的花式边框

jQuery 平滑滚动来自外部链接

javascript - 如何为history.pushState和replaceState设置 "default"值?

flash - Adobe Flash 浏览器是独立的吗?