这是原来的,没有生效
@font-face {
font-family: 'BebasNeue';
src: url('./font/BebasNeue.otf');
font-weight: normal;
font-style: normal;
}
这是修改后的(多了个空格)
@font-face {
font-family: 'Bebas Neue';
src: url('./font/BebasNeue.otf');
font-weight: normal;
font-style: normal;
}
font-family的名字要和字体安装时的字体名称一样