@ font-face not working(Shopify)

时间:2014-10-11 22:56:57

标签: css font-face shopify

src网址是正确的,但文本只显示为常规衬线。也许它与Shopify有关?

@font-face {
font-family: 'TradeGothicLTStdCnNo.18';
src: url('http://cdn.shopify.com/s/files/1/0065/5242/files/tradegothicltstd-cn18-webfont.eot');
src: url('http://cdn.shopify.com/s/files/1/0065/5242/files/tradegothicltstd-cn18-webfont.eot#iefix') format('embedded-opentype'),
     url('http://cdn.shopify.com/s/files/1/0065/5242/files/tradegothicltstd-cn18-webfont.woff') format('woff'),
     url('http://cdn.shopify.com/s/files/1/0065/5242/files/tradegothicltstd-cn18-webfont.ttf') format('truetype'),

font-weight: normal;
font-style: normal;
}

#navbar #navpanel .mainnav ul.tier1 > li {
font-size:13px;
font-family: 'TradeGothicLTStdCnNo.18';
}

1 个答案:

答案 0 :(得分:1)

这是一个简单的错误。

最后一个src网址

url('http://cdn.shopify.com/s/files/1/0065/5242/files/tradegothicltstd-cn18-webfont.ttf') format('truetype'),

应该以;不,

我想删除这个问题,但我决定自己回答,以防其他人犯同样的错误。