【发布时间】:2016-09-26 18:10:15
【问题描述】:
.title_font{
font-family: montserrat;
src: url("/assets/font/Montserrat-Light.otf") format("opentype");
}
@font-face {
font-family: 'montserrat';
src: url('/assets/font/Montserrat-Light.otf') format("opentype");
font-weight: bold;
}
这些都不起作用...你能帮帮我吗?它说 Unknown property ... 字体的路径很好。
【问题讨论】:
-
第一个代码无效,但
@font-face规则应该有效。 “未知属性”通常表示拼写错误,您可以使用原始代码创建在线版本吗?