Google chrome 我的字体不是';t正在谷歌浏览器上工作
由于某种原因,我的字体没有出现在谷歌浏览器上。它可以与其他浏览器协同工作,甚至在android移动网络浏览器上也是如此。我读了很多关于为什么会这样的帖子(谷歌chrome更新等),但我不确定是什么问题,也不知道如何解决。我希望有人能看看我的代码,看看他们的代码是否有问题 我的字体CSS:Google chrome 我的字体不是';t正在谷歌浏览器上工作,google-chrome,fonts,font-face,Google Chrome,Fonts,Font Face,由于某种原因,我的字体没有出现在谷歌浏览器上。它可以与其他浏览器协同工作,甚至在android移动网络浏览器上也是如此。我读了很多关于为什么会这样的帖子(谷歌chrome更新等),但我不确定是什么问题,也不知道如何解决。我希望有人能看看我的代码,看看他们的代码是否有问题 我的字体CSS: @font-face { font-family: 'source_sans_proregular'; src: url('sourcesanspro-regular.eot'); src: url('sour
@font-face {
font-family: 'source_sans_proregular';
src: url('sourcesanspro-regular.eot');
src: url('sourcesanspro-regular.eot?#iefix') format('embedded-opentype'),
url('sourcesanspro-regular.woff') format('woff'),
url('sourcesanspro-regular.ttf') format('truetype'),
url('sourcesanspro-regular.svg#source_sans_proregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'source_sans_problack';
src: url('sourcesanspro-black.eot');
src: url('sourcesanspro-black.eot?#iefix') format('embedded-opentype'),
url('sourcesanspro-black.woff') format('woff'),
url('sourcesanspro-black.ttf') format('truetype'),
url('sourcesanspro-black.svg#source_sans_problack') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'source_sans_probold';
src: url('sourcesanspro-bold.eot');
src: url('sourcesanspro-bold.eot?#iefix') format('embedded-opentype'),
url('sourcesanspro-bold.woff') format('woff'),
url('sourcesanspro-bold.ttf') format('truetype'),
url('sourcesanspro-bold.svg#source_sans_probold') format('svg');
font-weight: normal;
font-style: normal;
}
我的CSS在何处实现:
.headerBarText {font-family:'source_sans_proregular';
font-size:37pt;
color:#FFF;
font-weight:bold;
padding-bottom:0px;
padding-top:7px;
padding-left:15px}
我回答了我自己的问题。指向CSS文件的链接需要一封国会大厦的信,我发现的另一个问题是,我在“字体系列”请求中调用的字体拼写错误