这对我来说很困惑。我正在使用字体松鼠下载Web工具包以显示自定义字体。这里是链接到字体:http://www.fontsquirrel.com/fontfacedemo/League-Gothic@ font-face在Chrome中可用,但不适用于IE或Firefox
如果你在网页看现在:http://www.simonsayswebsites.com/
正文中间写着“定制网站,旨在帮助您获得更多的客户。”它看起来很棒,完全按照它的样子,但是如果你用firefox或者IE浏览它,自定义字体将不起作用。
这里的CSS生成字体面:
@font-face {
font-family: 'LeagueGothicRegular';
src: url('http://simonsayswebsites.com/wp-content/themes/twentytenchild/League_Gothic-webfont.eot');
src: url('http://simonsayswebsites.com/wp-content/themes/twentytenchild/League_Gothic-webfont.eot?#iefix') format('embedded-opentype'),
url('http://simonsayswebsites.com/wp-content/themes/twentytenchild/League_Gothic-webfont.woff') format('woff'),
url('http://simonsayswebsites.com/wp-content/themes/twentytenchild/League_Gothic-webfont.ttf') format('truetype'),
url('http://simonsayswebsites.com/wp-content/themes/twentytenchild/League_Gothic-webfont.svg#LeagueGothicRegular') format('svg');
font-weight: normal;
font-style: normal;
}
人有什么想法?我看了很多关于这方面的案例,但我没有看到与我的案例有关的案例,因为我认为我已经为每个浏览器包含了所有不同的必要文件,并将它们上传到了他们尊敬的地方。
我在Firefox中看到“LeagueGothicRegular”。 –
[这可能会帮助你](http://geoff.evason.name/2010/05/03/cross-domain-workaround-for-font-face-and-firefox/)。 –
问题是网址显示的方式......你不能拥有绝对的网址,无论出于何种原因哈哈。但是谢谢Shekh的那个链接,它为我今后必须做的事提供了一个很好的背景。感谢Arash的建议,谢天谢地我现在都很好。 – king