zoukankan      html  css  js  c++  java
  • 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');
    } 
    
    暂时记录这么多吧,碰到类似的还会继续添加~~~

  • 相关阅读:
    任务08——第一次半月学习总结
    任务5
    任务4
    任务3
    任务2
    mission 01
    HTML-CSS-JS Prettify报错Node.js was not found
    **1279
    UVa 10735
    UVa 1515
  • 原文地址:https://www.cnblogs.com/NetSos/p/1885539.html
Copyright © 2011-2022 走看看