Html @字体问题-字体不';I don’’t看起来和工具箱里的不一样
这让我发疯了,我已经通过@font-face运行了District-Thin字体并获得了工具包,但是与工具包中的相比,它看起来不太正确。我正确地遵循了这个过程,因为我使用的其他字体看起来都是正确的。我做错了什么?我注意到“&”看起来也不对。下面是我的代码示例Html @字体问题-字体不';I don’’t看起来和工具箱里的不一样,html,css,font-face,Html,Css,Font Face,这让我发疯了,我已经通过@font-face运行了District-Thin字体并获得了工具包,但是与工具包中的相比,它看起来不太正确。我正确地遵循了这个过程,因为我使用的其他字体看起来都是正确的。我做错了什么?我注意到“&”看起来也不对。下面是我的代码示例 @font-face { font-family: 'district_prothin'; src: url('../fonts/distproth-webfont.eot'); src: url('../fonts/distproth-w
@font-face {
font-family: 'district_prothin';
src: url('../fonts/distproth-webfont.eot');
src: url('../fonts/distproth-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/distproth-webfont.woff') format('woff'),
url('../fonts/distproth-webfont.ttf') format('truetype'),
url('../fonts/distproth-webfont.svg#district_prothin') format('svg');
font-weight: normal;
font-style: normal;
}
h2{
字号:8.9em;
字体系列:district_prothin,无衬线;
字体大小:正常;
文本对齐:居中;
}
您的本地计算机上是否安装了同名字体?
如果是,请尝试重命名字体系列(声明和用法)
否则,不妨看看这篇博文。试着像这样嵌入你的字体。一直为我工作
@font-face {
font-family: 'Graublau Web';
src: url('GraublauWeb.eot');
src: local('☺'),
url('GraublauWeb.woff') format('woff')
尝试过这个,但仍然不起作用。这看起来很奇怪,它在工具包演示中完美地工作,但在我的代码中却没有。我在@font-face中使用的其他字体看起来效果不错?您的浏览器控制台怎么说?有没有关于它拒绝加载字体的警告?
@font-face {
font-family: 'Graublau Web';
src: url('GraublauWeb.eot');
src: local('☺'),
url('GraublauWeb.woff') format('woff')