我使用 font squirrel 的字体,但它们无法加载。代码中是否存在冲突?
@font-face {font-family: 'chunk-webfont';
src: url('/fonts/chunk-webfont.eot');
src: url('/fonts/chunk-webfont.eot?#iefix') format('eot'),
url('/fonts/chunk-webfont.woff') format('woff'),
url('/fonts/chunk-webfont.ttf') format('truetype'),
url('/fonts/chunk-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;}
最佳答案
试试这个
@font-face {font-family: 'chunk-webfont';
src: url('fonts/chunk-webfont.eot');
src: url('fonts/chunk-webfont.eot?#iefix') format('eot'),
url('fonts/chunk-webfont.woff') format('woff'),
url('fonts/chunk-webfont.ttf') format('truetype'),
url('fonts/chunk-webfont.svg') format('svg');
font-weight: normal;
font-style: normal;}
关于html - 无法加载字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29332214/