zoukankan      html  css  js  c++  java
  • icon moon追加字体

    一、初始自定义字体为icon moon1
    @font-face {
    font-family: 'icomoon1';
    src: url('fonts/icomoon1.eot?9fhn24');
    src: url('fonts/icomoon1.eot?9fhn24#iefix') format('embedded-opentype'),
    url('fonts/icomoon1.ttf?9fhn24') format('truetype'),
    url('fonts/icomoon1.woff?9fhn24') format('woff'),
    url('fonts/icomoon1.svg?9fhn24#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    }

    [class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon1','icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    }

    .icon-buy:before {
    content: "e001";
    }
    二、下载再次调用的字体为icomoon
    ①在原来的css中(默认是style.css)中调用icon moon
    @font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot?28knl0');
    src: url('fonts/icomoon.eot?28knl0#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?28knl0') format('truetype'),
    url('fonts/icomoon.woff?28knl0') format('woff'),
    url('fonts/icomoon.svg?28knl0#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    }
    ②加入字体和对应代码
     
     
  • 相关阅读:
    与数学有关的几个猜成语
    tex 字体斜体设置
    Beamer中左边画图, 右边文字解释
    Beamer制作索引
    唐诗
    大学生数学竞赛试题荟萃2018-11-06更新
    浙江省2018年高等数学竞赛工科类试题
    读书笔记
    word中中文保持正体,英文用斜体的方法.
    山果(转载《人民日报》)
  • 原文地址:https://www.cnblogs.com/lrxsblog/p/6710120.html
Copyright © 2011-2022 走看看