css学习之----引用字体文件

1、先在css里面为引用的字体取名

@font-face {
    font-family: 'thin';
    src: url('../font/thin.ttf');
}

2、使用到需要的地方

.link_box {
    font-family: thin;
}

 

posted @ 2019-04-01 10:32  程序员冒冒  阅读(1756)  评论(0编辑  收藏  举报