我在我工作的网站上加载自定义字体时遇到了一些问题。
似乎能在Chrome中工作,但仅此而已...
https://andstones.site-ym.com/
我附加了一个自定义样式表,
<link charset="utf-8" type="text/css" href="http://www.korymathewson.com/fonts/styles.css" rel="stylesheet">在样式表中,我写道:
@font-face {
font-family: ChunkFiveRegular;
src: url('Chunkfive-webfont.eot');
src: local('☺'), url('Chunkfive-webfont.woff') format('woff'), url('Chunkfive-webfont.ttf') format('truetype'), url('Chunkfive-webfont.svg#webfontb5K2fJwj') format('svg');
font-weight: normal;
font-style: normal;
}然后我把它叫做字体系列..
h1.fontface {
font: 60px/68px 'ChunkFiveRegular', Arial, sans-serif;
letter-spacing: 0;
}
p.style1, #MainMenu {
font: 18px/27px 'ChunkFiveRegular', Arial, sans-serif !important;
} 但它仍然不会在firefox或IE中显示。你能提供什么帮助或建议吗?
发布于 2010-08-31 22:03:25
Firefox只允许与请求它的站点在同一域中的嵌入字体。这里有一个(某种)解决方法:
http://openfontlibrary.org/wiki/Web_Font_linking_and_Cross-Origin_Resource_Sharing
您可能希望尝试使用http://www.fontsquirrel.com/来允许将字体本身嵌入到CSS中--这非常有用!
希望这能有所帮助
发布于 2010-08-25 03:04:39
什么是92p?一个节点,还是说它是一个类?CSS类/id名称不能以数字开头。
https://stackoverflow.com/questions/3560034
复制相似问题