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

今天看了 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');
} 
暂时记录这么多吧,碰到类似的还会继续添加~~~

posted @ 2010-11-23 15:46  hevily  Views(3755)  Comments(0Edit  收藏  举报