zoukankan      html  css  js  c++  java
  • 字体图标

    字体库网站:

    icomoon: http;//www.icomoon.io/ icomoon字库全面

    icon font : http://www.iconfont.cn/  阿里妈妈图标库免费,可以使用ai制作图标上传

    fontello: http://fontello.com/  可以在线定制自己的图标库

    font-awesone: http://fortawesomg.github.io/Font-Awesome/  更新快

    Glyphicon Halflings: http://glyphicons.com       可以在bootstrap上免费使用,自带200多图标

    icons8 : http://icons8.com        免费png下载

     

    1:字体图标:一般保存svg格式,前端上传生成兼容性字体文件包,再引用

    @font-face { /* 电脑中没有的字体,我们需要声明 */
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot?7kkyc2');
    src: url('fonts/icomoon.eot?7kkyc2#iefix') format('embedded-opentype'),
    url('fonts/icomoon.ttf?7kkyc2') format('truetype'),
    url('fonts/icomoon.woff?7kkyc2') format('woff'),
    url('fonts/icomoon.svg?7kkyc2#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    }

    使用方法1:

    div::before {
    font-family: "icomoon"; /* 一定保证和上面的 font-family: 相同 */

    content: "e91b";
    font-size: 100px;
    color: hotpink;

    }

    <div></div>

    使用方法2:

    span {
    font-family: "icomoon"; /* 一定保证和上面的 font-family: 相同 */
    font-size: 100px;
    color: pink;
    }

    <span>□</span>

     

  • 相关阅读:
    Spring之AOP源码理解,Spring4.3.12.RELEASE版本
    Spring注解式AOP面向切面编程.
    计算机网络知识(TCP连接,TCP/UDP区别,HTTP与HTTPS,Socket原理等等)
    仿微博php生成短网址
    linux下的C语言开发
    其实Unix很简单
    算法的力量
    java for 的用法总结
    C#操作 word代码
    编写高性能SQL
  • 原文地址:https://www.cnblogs.com/pxxdbk/p/12499271.html
Copyright © 2011-2022 走看看