我正在尝试在网站中安装自定义字体,为此我使用了以下代码行:
font-family: 'TradeGothic';
src: url('../Content/fonts/trade_gothic_oblique-webfont.eot?');
src: url('../Content/fonts/trade_gothic_oblique-webfont.eot') format('eot'),
url('../Content/fonts/trade_gothic_oblique-webfont.eot?#iefix') format('embedded-opentype'),
url('../Content/fonts/trade_gothic_oblique-webfont.woff') format('woff'),
url('../Content/fonts/trade_gothic_oblique-webfont.woff') format('ttf');
src: url(data:application/x-font-woff;charset=utf-8;base64, Us6SIvwGRglxYAAAAAAFQbB7XAAA) format('woff'), url('../Content/fonts/trade_gothic_oblique-webfont.ttf') format('truetype');
它在所有浏览器的本地主机上都可以正常工作,但在实时服务器的情况下,这不仅适用于 ie7、ie8 和 safari 5.0,所以让我知道这段代码出了什么问题。