【发布时间】:2018-04-11 06:28:06
【问题描述】:
我有一个使用 HTML5 Blank 子主题上传到 Wordpress 的前端网站。一些悬停文本的字体粗细存在非常明显的差异 - 以及页脚 - 我在独立的前端版本中没有看到。
示例 - 页脚
示例 - 悬停文本
这就是我的风格 -
style.css
@font-face {
font-family: 'GothamLight';
src: url('fonts/GothamLight.eot');
src: url('fonts/GothamLight.eot') format('embedded-opentype'),
url('fonts/GothamLight.woff2') format('woff2'),
url('fonts/GothamLight.woff') format('woff'),
url('fonts/GothamLight.ttf') format('truetype'),
url('fonts/GothamLight.otf') format('opentype'),
url('fonts/GothamLight.svg#GothamLight') format('svg');
font-weight: normal;
font-style: normal;
}
body {
font-family: 'GothamLight', sans-serif !important;
font-size: 16px !important;
font-weight: 500 !important;
-webkit-font-smoothing: subpixel-antialiased !important;
}
我已经在谷歌上搜索并寻找答案 - 我已经尝试了所有这些,但似乎没有一个有效。有什么我想念的吗?
【问题讨论】:
标签: css wordpress font-face font-size