一:写下public中
1:导入文件
1:css
@font-face {
font-family: pf;
src: url("pf4.ttf");
font-weight: normal;
font-style: normal;
}
2:index.htm
<link rel="stylesheet" href="pf.css" />
2:引用
body{
font-family:pf;
}
1:导入文件
1:css
@font-face {
font-family: pf;
src: url("pf4.ttf");
font-weight: normal;
font-style: normal;
}
2:index.htm
<link rel="stylesheet" href="pf.css" />
2:引用
body{
font-family:pf;
}