不知道是否要重复一个问题,但是webfont存在这个问题。我使用的是Gotham字体,它可以在chrome中使用,但不会在Mozilla中呈现。 Mozilla只是给了我一些基本的字体。谁能帮助我解决此问题?
@font-face {
font-family: 'gotham_boldregular';
src: url('../fonts/gotham-bold-webfont.eot');
src: url('../fonts/gotham-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/gotham-bold-webfont.woff2') format('woff2'),
url('../fonts/gotham-bold-webfont.woff') format('woff'),
url('../fonts/gotham-bold-webfont.ttf') format('truetype'),
url('../fonts/gotham-bold-webfont.svg#gotham_boldregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'gotham_lightregular';
src: url('../fonts/gotham-light-webfont.eot');
src: url('../fonts/gotham-light-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/gotham-light-webfont.woff2') format('woff2'),
url('../fonts/gotham-light-webfont.woff') format('woff'),
url('../fonts/gotham-light-webfont.ttf') format('truetype'),
url('../fonts/gotham-light-webfont.svg#gotham_lightregular') format('svg');
font-weight: normal;
font-style: normal;
}
最佳答案
尝试Gotham
,Gotham Light
或Gotham Book
:
@font-face {
font-family: 'Gotham';
}