Html CSS嵌入字体在Firefox中不起作用
我在我的网站上添加了一种字体,但是它没有出现在firefox中,有人知道为什么会这样吗 我的CSS在上面,我的字体在我的CSS样式文件夹中Html CSS嵌入字体在Firefox中不起作用,html,css,firefox,fonts,Html,Css,Firefox,Fonts,我在我的网站上添加了一种字体,但是它没有出现在firefox中,有人知道为什么会这样吗 我的CSS在上面,我的字体在我的CSS样式文件夹中 任何帮助都将不胜感激 您可以尝试在Firefox中使用此代码来使用特定于浏览器的css,这是特定于浏览器的css攻击的良好来源,或者您可以在谷歌上搜索特定于浏览器的css @font-face { font-family: 'exoregular'; src: url('exo-regular-webfont.eot'); src:
任何帮助都将不胜感激 您可以尝试在Firefox中使用此代码来使用特定于浏览器的css,这是特定于浏览器的css攻击的良好来源,或者您可以在谷歌上搜索特定于浏览器的css
@font-face {
font-family: 'exoregular';
src: url('exo-regular-webfont.eot');
src: url('exo-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('exo-regular-webfont.woff2') format('woff2'),
url('exo-regular-webfont.woff') format('woff'),
url('exo-regular-webfont.ttf') format('truetype'),
url('exo-regular-webfont.svg#exoregular') format('svg');
font-weight: normal;
font-style: normal;
}
希望这有帮助 使用类似的方法可能会更容易。不幸的是,这没有起到任何作用,你还有其他的想法吗?@ScottShannon很抱歉听到这个消息,也许这个答案可以帮助你更多[链接]
@-moz-document url-prefix() {
@font-face {
font-family: 'exoregular';
src: url('exo-regular-webfont.eot');
src: url('exo-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('exo-regular-webfont.woff2') format('woff2'),
url('exo-regular-webfont.woff') format('woff'),
url('exo-regular-webfont.ttf') format('truetype'),
url('exo-regular-webfont.svg#exoregular') format('svg');
font-weight: normal;
font-style: normal;
}
}