@font-face {
font-family: 'Runescape Chat Font Regular' !important;
src:
local('Runescape Chat Font Regular'),
local('Runescape Chat Font Regular'),
url('Runescape Chat Font Regular.ttf');
}。
.message-group.compact .message .message-text .markup .user-name {
font-family: 'Runescape Chat Font Regular', sans-serif !important;
font-size: 13px !important;
font-weight: 100 !important;
}我正在尝试使用安装在我电脑上的字体,但是它不工作。我的代码中有没有什么错误?未显示Runscape聊天字体常规字体。(这是给一群朋友的,他们都预先安装了字体,所以安装字体才能工作是可以的。)
发布于 2016-10-19 18:45:35
嗨,这就是你在css中引用字体的方式
@font-face {
font-family: myFirstFont;
src: url(sansation_light.woff);
}请参阅此@font-face rule css
请将此信息提交给learn more
https://stackoverflow.com/questions/40128864
复制相似问题