【问题标题】:css custom font doesn't workcss自定义字体不起作用
【发布时间】:2013-02-01 18:17:35
【问题描述】:

这是我的css的开始

@charset "utf-8";

@font-face {
    font-family: 'dax';
    src: url('font/Dax.eot');
src: url('font/Dax.eot?#iefix') format('embedded-opentype'), 
     url('font/Dax.woff') format('woff'), 
         url('font/dax-regular.ttf') format('truetype'), 
             url('font/Dax.svg') format('svg');
    font-weight: 300;
}

html, body {
font-family: "dax", Arial, serif;
....

这是我的字体文件,这是我的站点文件夹的层次结构 根包含: index.html 和 字体和 ....

字体包含:screen

【问题讨论】:

  • 不起作用。它只是从 arial 切换到 times new roman
  • 你的css文件和html文件在同一个文件夹吗?
  • omg 愚蠢的我......我今天早上改变了它,我也忘了改变那个链接。谢了!!!!

标签: css font-face


【解决方案1】:

试试 url('/font/dax-regular.ttf')

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-22
    相关资源
    最近更新 更多