1
这是我的CSS的开始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
试试'font-family:dax;'。 – Vucko
doasn't工作。它只是从宋体切换到新的罗马文字 –
您的CSS文件与html文件位于同一文件夹中吗? – Vucko