html - @Font-face 在某些浏览器中不显示大写字母 "A"

标签 html css fonts font-face frontend

奇怪的问题。我在网站上使用 @font-face 时遇到了一些问题。我最初并没有让大写的“A”出现在 Mac 上的 Chrome 中。显式设置字体粗细后,任何超过 300 的内容都可以。

但是,现在我看到它出现在 Firefox 和我的客户端计算机上的各种浏览器中。

这是我的代码:

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/tricky.eot');
    src: url('../fonts/tricky.eot?#iefix') format('embedded-opentype'),
         url('../fonts/tricky.woff') format('woff'),
         url('../fonts/tricky.ttf') format('truetype'),
         url('../fonts/tricky.svg#ModernPictogramsNormal') format('svg');
    font-weight: 300;
    font-style: normal;
}

你可以在这里看到它:http://infirmaryhealth.mdidev.com/

感谢您的帮助-

最佳答案

解决了问题。

我使用的是 Zurb 的 Foundation 框架。他们将此应用于 h1h6:

text-rendering: optimizeLegibility;

将其注释掉,瞧!

关于html - @Font-face 在某些浏览器中不显示大写字母 "A",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15689742/

相关文章:

html - 当换行时,自动在 `code` 环境中添加换行符号

css - 提交按钮 css。 Firefox 中的大纲

Java awt 字体间距选项

javascript - 如何在 Froala Editor 上设置默认字体大小?

html - 缩小时 Div 与另一个 Div 重叠

html - Flexbox 拼贴网格布局

html - 如何在不更改样式的情况下更改输入边框颜色?

jquery - 我想使用固定 Bootstrap 导航栏的 stickyfloat.js

html - 在 div 中居中文本,同时将关闭按钮保持在右侧

macos - 如何在 RStudio 中安装新字体?