我无法在我的Wordpress网站上使用字体,我尝试了所有的方法,但我找不到哪里出了问题。我把字体放到了我的wordpress博客根目录下创建的fonts文件夹中。
下面你可以看到我的style.css文件。
@font-face {
font-family: 'museo_sans500';
src: url('/fonts/museosans500-webfont.eot');
src: url('/fonts/museosans500-webfont.eot?#iefix') format('embedded-opentype'),
url('/fonts/museosans500-webfont.woff') format('woff'),
url('/fonts/museosans500-webfont.ttf') format('truetype'),
url('/fonts/museosans500-webfont.svg#museo_sans500') format('svg');
font-weight: normal;
font-style: normal;
}然后将其命名为:
.myfont{
font-family: "museo_sans500", sans-serif;
}任何建议都很感谢..
发布于 2013-07-19 00:38:10
如果你把字体放在博客的根目录下,那么你的路径是不正确的。现在,您正指向当前主题目录中的fonts文件夹。
https://stackoverflow.com/questions/17729205
复制相似问题