【发布时间】:2013-09-20 11:31:32
【问题描述】:
我有这段代码是为了让 webfonts 在每个浏览器中都能正常工作:
@font-face {
font-family: 'TradeGothic-BoldCondensedNo20';
src: url('../fonts/tradegothic/trade-gothic-lt-std-bold-condensed-no-20.eot?') format("embedded-opentype"),
url('../fonts/tradegothic/trade-gothic-lt-std-bold-condensed-no-20.woff') format('woff'),
url('../fonts/tradegothic/trade-gothic-lt-std-bold-condensed-no-20.ttf') format('truetype');
}
但是,它仍然无法在 IE8 及更早版本中运行。
【问题讨论】:
-
你试过文件的绝对路径吗?
-
在fontspring syntax 中他们使用'myfont-webfont.eot?#iefix',也许#iefix 在这种情况下会有所帮助?
-
@r3bel 已尝试但结果相同
-
@jycr753 也适用于这个解决方案,已经尝试过但结果相同
标签: css internet-explorer-8 cross-browser font-face