现在的位置: 首页 > 综合 > 正文

css中如何引入“非常” 字体

2012年11月20日 ⁄ 综合 ⁄ 共 538字 ⁄ 字号 评论关闭

今天看了 http://snook.ca 的站点,看着他页面的字体蛮好看的,就 firebug 了一下。原来他是这样子做的。也是通过 引用自定义的一个字体。[以前研究过,存了一份 忘记放哪了]。就在这里记录以下吧。。

/*
green #680
dark #333
lighter #666
*/

@font-face {
 font-family: 'GothicCustom';
 src: url("LeagueGothic.eot");
 src: local('☺'), url("LeagueGothic.otf") format('opentype'), url("leaguegothic.svg#lg") format('svg');
}



/* A font by Jos Buivenga (exljbris) -> http://www.exljbris.nl */
@font-face {
 font-family: 'MuseoCustom';
 src: url("MuseoSans-500.eot");
 src: local('☺'), url("MuseoSans-500.ttf") format('opentype'), url("museo.svg#museo") format('svg');
} 

暂时记录这么多吧,碰到类似的还会继续添加~~~

抱歉!评论已关闭.