我就是不明白。我已经尝试了所有方法,但无法使用。我查看了多个教程,但仍然根本无法使用。

的CSS

@font-face {
   font-family: Note;
   src: url('font/note_this-webfont.woff') format ('embedded-opentype'),
   url('font/note_this-webfont.woff')
}

.note-editable {
   width: 260px;
   height: 130px;
   padding-top: 20px;
   margin-top: 60px;
   margin-left: 56px;
   padding: 0;
   font-family: Note;
   font-size: 18px;
}

最佳答案

您是否忘记在分号“;”的末尾添加分号? ...如果不是,那肯定是文件的路径错误。

@font-face {
    font-family: Note;
    src: url('font/note_this-webfont.woff') format('embedded-opentype'),
    url('font/note_this-webfont.woff');
}

关于html - 为什么我的@ font-face经过大量努力后无法正常工作?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31797764/

10-09 06:44
查看更多