zoukankan      html  css  js  c++  java
  • 前端 icon 阿里小图标 下载 使用步骤

    官网地址:https://www.iconfont.cn

    访问官网地址,进入首页:

     在搜索框内搜索自己想用的图标

    按回车键会跳到搜索相关页面

     可以根据类型缩小范围,选择自己需要的图标添加入库

     选择完成后可以看到自己选择的图标

     点击下载代码

     选择登陆方式进行下载

     登陆成功后再次点击下载代码

     在自己电脑中找到下载压缩包,进行解压

     进入文件夹后,文件夹内有运行demo,可根据demo进行引入

     demo_index.html 运行效果图

     自己项目引用,将iconfont.css  iconfont.js  加入到css中

     在需要小图标的页面引入iconfont.css  iconfont.js 文件

     打开 iconfont.css  可在里面修改图标颜色 字体大小等相关属性(如果多次下载,可将后续下载的iconfont.css 里面的内容复制到第一次引用的iconfont.css 中,但每次下载内容的红框内的要相对应)

     在页面引入小图标,不同的小图标引入要与iconfont.css 中相对应

    一下为自己项目中引入的多个小图标,上述不理解的可自己参考

    iconfont.css  文件

    @font-face {font-family: "iconfont";
      src: url('iconfont.eot?t=1605679856372'); /* IE9 */
      src: url('iconfont.eot?t=1605679856372#iefix') format('embedded-opentype'), /* IE6-IE8 */
      url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAOMAAsAAAAAB9AAAAM9AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDBgqDNIJyATYCJAMMCwgABCAFhG0HOxu9BhHVm3/IvjjI5hx5LJPrmaB3w0rNT4bQaWI/Bw//On/35aUlP/luiphOnBPEWvAKaptvutuKl1Ft0gBogICH3J0wpa3O95tzwEZFmKLs851Hf/BT4FxGPnHvtGkbbD6gHNde55+6AOOAAhprU2QFlCC3yC7iSljmcQhAJ1Y20dzaPYyGChonALF00YJZaBkLak29QENgBZaqiP1Y0JRdykNgX/B98YHCNFCwSNDU/vktc6l/7eul+d+c6pGQjucClFUggWyggpgOesaRUSabRLc0an25FRWBMlb8//9AYqus+A8PFAQIK6jWG4B0Qa2clJRKEu287KyPkgBYAQOwgVMQI9hVViw+PiF6tPAOsQifFTaXkJvcdieK6dBT3FDpvjFEcTgW6OLo3VT9/O1wdJvDdBp+9mNHZ7vdhtGwFu9F3ra7kb3qnE7Dx+4eo/jwbT3A1+YSu4b5OZ2mY7kt1BU2xh2/wG0PGXGawXMdwcOOseGxBaNzF9hCR12boGJH11nDYwRRU8gnr+jTGd2jB/GaEH7nbZc3Fvod+fr765EVbjQ8oR7D7vv27buCetXvDrMKc1pqZ8Qf9dtgfArxGBsA8gzN+syM9X5H41nymFuBt8zHprdV9lWv0Z1Z6buDk1yueQEjc+eOBI5EexU27E6PL3NHzZ4dvXlzS2vBy/5KL3howMOAeXPmjAbcZiZonJyj3AeQpvxjv+HmE1fN8Kv+pRkqAC968TUYqiIBNBRoLf0/0pYNqi1HVqmaEipxo5JR/sEkBdDRgf9cINCr/r4QJC6Bpkp5KEwiBhKNZLJKz4YFg2JY0aiDTpa21QZBViMRqheQaRsHgb8rUPDlHiT+HpFVugcWQn2CFf8kdEZF0JYGqXHNpUlgFJ7snxo3jUzsegnrb6jevZG0POC9IKGJUxan+fwVI2SMGeFT5apMLNNAJXca+n6iWaYWTuNadS6ShKE3xW4aVheaBEbhyf6pcdPIXmu9FD5/Q/XujdQQWuIvSGg6pyxOW5CvmrEV4VpeCZ8qV2VimQYqORd6nJlohge1cBrXPVJzkQjNuK0mnl83PN82QAf1l0IRUqh4bYCNTt4S7T3zagUAAAA=') format('woff2'),
      url('iconfont.woff?t=1605679856372') format('woff'),
      url('iconfont.ttf?t=1605679856372') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
      url('iconfont.svg?t=1605679856372#iconfont') format('svg'); /* iOS 4.1- */
    }
    
    
    @font-face {font-family: "updateiconfont";
      src: url('iconfont.eot?t=1605690354055'); /* IE9 */
      src: url('iconfont.eot?t=1605690354055#iefix') format('embedded-opentype'), /* IE6-IE8 */
      url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAL0AAsAAAAABpAAAAKmAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCCcAqBFIEcATYCJAMICwYABCAFhG0HNxvJBREVlAlkPxNsWwXrAwZq0dIUhjbGN++PDw5Cuw2LsOBMPHytle9P9y6rA2B1dZLDIGSiolIRElHGqWggSRJIAs/+z+UdD9FlKIuuduRRYSG/5fSl6cDthJxSQHZCTcgJyQfnOl8W4aYbDQvjI0GidVph3/70hI9Pze8Yt/pmi98PwhtwOf4GUCDzgHKbY/CYgIGlge2JUcJtkAC8YewCl3CeQNOIJbHDMC2oy6xpgTgz7AdQz/lkmSXrQrVmbRa3ddWLK8WjBrfC78fnxnIMUagkVtmR03oHNt+pdlq6LevENxjMZwHbRMISMnGiNnZIEoyWNGPZBPsqDt6xLH2D2OufJ6qswjYYgrx74ruCWy0sQI5757E26l4pJmpumApuJowndpLEMd+K03SbZdw827OTeMc7VuyecDPOnjfr+q1W+9pd/zGwg/t//qHVo7V859jzcOLqQznblPurSO/l3XDfvT/nXy5W16/e24Mov/7cY2ZsgjLp2cZ/9xsnB/auPUL7NjSawavn/3BCmQzpFFA/gz34U/yeLVkXWvoiq/xaR2F+1NQCTU2UwK4Ob8equm8rFeq6b85RM5wiqZsiMnUJFS0rqKrbQNOi3ZtbOp2VRG5gwQWA4Jlyj5YJ72ib8kF0qJ/oWvCFnqloY8RxzO45ajPikS1GVzAA7wZinwrlGGUkKt7HsM5czgpD+jFyFQfB1Ixicg8L5DkWVJehJaJAMeWwCy7DLCMomRL0RYtESkfXVd2NNJ/yxogtDLkECgDPDRDzkYLyu4uR0uf3oVAt4+KWihrnMcQqcf/ApDF6EHuyolfFvVxTuRSyCKEAhZEc2AWjUCZDQFk/KoF8QhONiJQcut1J9ZVp6yvyD8hlNVjqVtiDk/FztRe7dC5xEmgbDQAA') format('woff2'),
      url('iconfont.woff?t=1605690354055') format('woff'),
      url('iconfont.ttf?t=1605690354055') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
      url('iconfont.svg?t=1605690354055#iconfont') format('svg'); /* iOS 4.1- */
    }
    
    @font-face {font-family: "geticonfont";
      src: url('iconfont.eot?t=1605748103367'); /* IE9 */
      src: url('iconfont.eot?t=1605748103367#iefix') format('embedded-opentype'), /* IE6-IE8 */
      url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAoAAAsAAAAAE5QAAAmxAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCFBgqXDJMzATYCJAM8CyAABCAFhG0HgV4b0RARVawJJPt54BhrTY8jCI2Ue0XVpRN2kRflfw4eaK39G1mbW0QkwSXUmyeTqNFsQ4OonVDMm3gm+w/pJ45ozmb3gFzuLoYcpjVPxZFKkHoEDUGSgqdQk0vrofUIUFHwqoaKUw+pKXmv2h/OZdUTChM1V3ZvRxLILml7ocI19KT92ABxuFdOrbV69+8Nt23goTHUsHuve7cv+46oNZP0FZJoZAhJXBMlQugaSiKETKpomFPL56YwCgH8spMhAEMmdAbUMiJBDiQamRdoMZU7MQPIgBWd4SlwjXbCjhrEBli4chluBli33l/8gyJEAhJLgXyqLt3wbIhsJf7QEtz/HIMEB0Fz6YC0GyggDIAG8ZyYeQvKwWFLMEntNbsA6SCm2/ofROvo1mdOidPf2d3Z0yl1DnXGOYv/iPlD+///kJEGcc/kbEG6knrQP/AAFw+DxMYihI+DRhBBJAqEDRB8kh5XRcIHoVFci4wGxQN5hlgY+BRTJIgEFBvEHxQLpDsoIZCeoPggUlAckKGgaJA4UARIMWIRAV8xlEgQLQhHVhy1QyYA1QBqH7AiQTZME7aVTI0yOA9LLqhrYlbRcmKWT/KEQlbAFPv5eTLhoiA/RuggXe9CZaFBYX6h5o/yC2QYsa+EH+DiUkw5HEp0966KbmlRgN0uD2L1G4OLaWAUz6emBRrKvIDjnIvSrUbkbG7KEFoMtKiMm8UdPW44dkRTEBN50AfjZjY5Zw/BW1uGX7wbTmxzTJeCDNYyM9MSZa2pqvDElgcXV0ZgUlCBAIOVptM507RkdXfpDkdiOXWDD2i3p1A9K+vbM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E00IoBB8NvxgEt4SC0eLTAPDaluRNU4cNXhF3bLTxChY9avtSJ+wTpVQvIkC9e8wgC2iU3cWRTec8It9uSFnQ66DsloUUPtE+n9eEpTnnSJpMY+WsAjCzAeaBCVm5FSqaEBH9lbRN7+ExCCDmMzuvxO+QtYjpo/kUtkBdhXYSjU5VDaO2dCwfN0jmjlFuodwwulg06pRMSYvJwGal5CVigfnaR8KF5USLo39Pt9EmBAfp0oNJqaW1rb2js6u7p7evv6mRaEmxq0WsrAKjbwUMEw2aBd4njhJFwVG4RWswJ75WsfKsXwLtU9YBxnLGy3clncLV/9LR3jvGZ9jbYBu2t44F9bHWlgQRllFAEAAA==') format('woff2'),
      url('iconfont.woff?t=1605748103367') format('woff'),
      url('iconfont.ttf?t=1605748103367') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
      url('iconfont.svg?t=1605748103367#iconfont') format('svg'); /* iOS 4.1- */
    }
    
    @font-face {font-family: "deliconfont";
      src: url('iconfont.eot?t=1605931548928'); /* IE9 */
      src: url('iconfont.eot?t=1605931548928#iefix') format('embedded-opentype'), /* IE6-IE8 */
      url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAMcAAsAAAAABrAAAALQAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCCcAqBNIFGATYCJAMICwYABCAFhG0HNhvyBcg+BNjuGzASjKTUbVTjlSjCYFap619mNXftvFEeQbVG9uzuIyoGRZI1UpB1ZIRJnEdjgMqjilDnw1/zXbVotMg/vEWkReEojUY0K9rA+mhuc6yUCwU8kUyT58n9z4+JpQgkQoVGiay7fwc8yedZRHGASfPC8gsXWEni8aUt2IDDXDOeBoBNhw24gGAY4QkePGTjparUKp9uvfPa2tPnuZzeKKBA5gcppzkWH/UCjLcGugdGiUYFEoA3jF3gEu4TaDTARW2Rw1moK6xlgXgy5rpQz8UUhRXrhdqavQXxRo36dEwbwevw+/GPQdQhqcmw2nbvLS1h8iuxy3Ku6tInxAnocA0y5kAhDmtz22TBOIxGUcUIKEryl6rCDrHXP0/UwmpsBn1Qdk9yV3GrjQkUOLkEzkZdSGk1VHV9vV4+Xc7zd7cvt2uBklizUJLUvXeEXLP3Xkf5x3pzb63maKXw/M7Kiec7F49f/DTpOu3NnwqjX36zynhLjbh6eVQJzMNHidUv3gitBostnhp/5Rp/fVP5e8YJR+Wfcs49DQXWCKgsv8p/4lfB//69zb2+iQX8/JtwQWVFzqD+tP7g98l7dhRdaRnThciQP1nKRCSghAdVYIU6Pceaeu7VE+pzcoakTj+yemNkYc+hRpNF1Kq3ikaz4sNNuszIokhgxhYgtDshafURWbszWdgP1Oj1Qq32kNHoOPjMJhPhyH6GeooWdCoYmxQyx5k2o+Yj8szX46wy5F4xTpwkRJ1esbjGEOM5NsxzPlikDAYxBUDAY+j7BJOYXDTTzihN7+Ogy+pe1OlSIDRtiiFdCllARwWMmUiI+b1TzdLnjxCX8eniFkZN/ArFEs70IOILe5BrXdiLcS/PzOW4gYUUAwZiJAAI8CDfzhEwqZ/lQqZUx2hE5m4sQN0GfXWd9Q3B1+2DRpY5hd3GoPnliELumZ0AenVBAA==') format('woff2'),
      url('iconfont.woff?t=1605931548928') format('woff'),
      url('iconfont.ttf?t=1605931548928') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
      url('iconfont.svg?t=1605931548928#iconfont') format('svg'); /* iOS 4.1- */
    }
    
    
    
    .deliconfont {
      font-family: "deliconfont" !important;
      text-align: center;
      font-style: normal;
        font-size:24px;
        height:20px;
        color:#4A90E2;
    }
    
    
    
    .geticonfont {
      font-family: "geticonfont" !important;
      text-align: center;
      font-style: normal;
        font-size:40px;
        height:40px;
        color:#4A90E2;
    }
    
    
    
    
    .iconfont {
      font-family: "iconfont" !important;
      text-align: center;
      font-style: normal;
        font-size:24px;
        height:20px;
        color:#4A90E2;
      }
    
    
    .updateiconfont{
        font-family: "updateiconfont" !important;
      text-align: center;
      font-style: normal;
        font-size:22px;
        height:20px;
        color:#4A90E2;
    }
    
    
    .deleteiconfonts {
       font-family: "deleteiconfonts" !important;
      text-align: center;
      font-style: normal;
        font-size:24px;
        height:20px;
        color:#4A90E2;
    }
    
    
    .icon-web-icon-:before {
      content: "e6ea";
    }
    
    .icon-icon-:before {
      content: "e653";
    }
    
    .icon-tubiao_tijiao:before {
      content: "e63b";
    }
    
    
    .icon-luyinji:before {
      content: "e64a";
    }
    
    .icon-huabanfuben:before {
      content: "e610";
    }
    
    .icon-icon--:before {
      content: "e765";
    }
    
    .icon-shexiangji:before {
      content: "e63f";
    }
    
    .icon-luyinji1:before {
      content: "e61b";
    }
    
    .icon-tubiaozhizuo-:before {
      content: "e611";
    }
    
    .icon-luyinji2:before {
      content: "e634";
    }
    
    .icon-luyinji3:before {
      content: "e503";
    }
    
    .icon-shexiangji1:before {
      content: "e54e";
    }
    
    .icon-shexiangji-o:before {
      content: "e5e0";
    }
    
    .icon-camcorder:before {
      content: "e630";
    }
    
    .icon-icon_huabanfuben:before {
      content: "e632";
    }
    
    .icon-shexiangji2:before {
      content: "e66f";
    }
    
    .icon-shexiangji3:before {
      content: "e743";
    }
    .icon-zhongzhimima:before {
      content: "e74f";
    }

    以下为代码中各个小图标的引用

     

     

     

  • 相关阅读:
    OBJC依赖库管理利器cocoapods 安装及使用详细图解
    OBJC依赖库管理利器cocoapods 安装及使用详细图解
    Parse-轻松构建移动APP的后台服务
    Parse-轻松构建移动APP的后台服务
    Parse:App开发必备 让应用开发效率提高上百倍
    Responder对象
    Responder对象
    iOS UIWebView获取403/404
    Python基本语法_基本数据类型_数值型详解
    Openstack贡献者须知 — OpenPGP/SSH/CLA贡献者协议
  • 原文地址:https://www.cnblogs.com/ttqi/p/14034758.html
Copyright © 2011-2022 走看看