html - 无法加载字体

标签 html css

我使用 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/

相关文章:

html - Bootstrap 奇怪的边框悬停在导航类内的图像上

jQuery 多复选框过滤器组

javascript - 在 Google App Engine 中使用 JavaScript 将可下载文件添加到另一个页面

css - 2 级 CSS 下拉菜单 - 显示 : none Does not Work

css - Sass/Compass 编译时不做数学运算

jquery - 当页面上只有一些元素可用时,如何使用 jQuery 添加类?

css - 我想在 Bootstrap 3 更改屏幕大小时更改背景颜色

javascript - html/css/js 查找元素是否悬停在其他元素上

jquery - 如何监听 iPhone 键盘 Action /触摸(例如, 'GO'、 'Search' 等)

html - 将 <p> 与图像对齐不起作用