我在下面有这个字体代码,它在谷歌浏览器中运行良好,但在 Firefox 中根本不起作用?为什么?
<style type="text/css">
@font-face {
font-family: 'Lato';
src: url('http://www.website.com/fonts/ca/Lato-Reg-webfont.eot');
src: url('http://www.website.com/fonts/ca/Lato-Reg.ttf') format('truetype'),
url('http://www.website.com/fonts/ca/Lato-Reg-webfont.eot?#iefix') format('embedded-opentype'),
url('http://www.website.com/fonts/ca/Lato-Reg-webfont.woff') format('woff'),
url('http://www.website.com/fonts/ca/Lato-Reg-webfont.svg#LatoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'LatoBold';
src: url('http://www.website.com/fonts/ca/Lato-Bol-webfont.eot');
src: url('http://www.website.com/fonts/ca/Lato-Bol.ttf') format('truetype'),
url('http://www.website.com/fonts/ca/Lato-Bol-webfont.eot?#iefix') format('embedded-opentype'),
url('http://www.website.com/fonts/ca/Lato-Bol-webfont.woff') format('woff'),
url('http://www.website.com/fonts/ca/Lato-Bol-webfont.svg#LatoBold') format('svg');
font-weight: normal;
font-style: normal;
}
nav ul li{
font-family: 'LatoBold', sans-serif !important;
}
</style>
<nav id="mainNav">
<ul class="grid_0">
<li>
<a href="http://www.website.com">Home</a>
</li></ul>