【发布时间】:2013-09-16 23:55:25
【问题描述】:
不知道我做错了什么,但是按照本教程http://sixrevisions.com/css/font-face-guide/,我在让它工作时遇到了问题。
我在 style.css 顶部的代码:
@font-face {
font-family: 'chunkfiveregular';
src: url('http://careerteam.de/wp-content/themes/theme1383/css/chunkfive-webfont.eot');
src: url('http://careerteam.de/wp-content/themes/theme1383/css/chunkfive-webfont.eot?#iefix') format('embedded-opentype'),
url('http://careerteam.de/wp-content/themes/theme1383/css/chunkfive-webfont.woff') format('woff'),
url('http://careerteam.de/wp-content/themes/theme1383/css/chunkfive-webfont.ttf') format('truetype'),
url('http://careerteam.de/wp-content/themes/theme1383/css/chunkfive-webfont.svg#chunkfiveregular') format('svg');
font-weight: normal;
font-style: normal;
}
我已经在我的根文件夹中找到了所有文件。
我稍后通过以下方式调用字体系列:
#man_translated {
font-size: 26px;
font-style: italic;
line-height: 28px;
font-family:chunkfiveregular;
}
我在 wordpress 中,我使用的模板具有 h1、h2、h3 的预设字体画布样式,将每个单词转换为字体 dakota 手写的 png。也许模板中的这个核心设置与我即时更改 javascript id/css 冲突。
【问题讨论】:
-
只是在没有看到任何 HTML 的情况下确定:您真的有一些 HTML 元素的 class 属性值为
p还是您的意思是选择<p>元素? -
数据不足。无法重现此数据的问题 - 未指定字体来源,未识别经过测试的浏览器。并且代码包含一个简单的语法错误,可以使用 CSS Validator 轻松检测到。评论说“全部检查”,但问题中仍然存在语法错误。
-
好的,我应该更好地编辑我的问题,但我可以向您保证,代码语法现在是正确的,但它仍然无法正常工作
-
我猜你的模板使用 cufon
-
我们在哪里可以找到一个活生生的例子?仅使用这些 sn-ps 我们无法找到错误。
标签: css wordpress fonts font-face