uni-app引入阿里图标库
在阿里图标库中的项目设置中将字体格式中的Base64勾选
从阿里图标下载图标压缩包
找到iconfont.css文件
将iconfont.css中src:url()只保留Base64格式 例如:
@font-face {font-family: "iconfont"; src:url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAB78AAsAAAAAN9QAAB6tAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCKWArUeMROATYCJAOBZAt0AAQgBYRtB4RnG28uZQRsHAD0Zt/rKMqiqMr+/1MCN2TI+9BeVREKas1dempKzKm4PqE0dixldNuzL2pWH67KW3JNtmksLLyohQ6fi4iJZkxmm1547L8jY0YHF7HZUEqe53/tf/vOzHvfXBZRkmgoZonSSJBIpEhIpHCwEv7P89v887gPZCIgggFTQcSYili5gdiow8CszSVmLtRVKerUVbu5KDdXP4xlfff/d5HWUh0B4CidR5wvEa2JDHOHcq2qati9u1QzGsGsG1gTjTCwhq844/kk90y+1u1Ia4LLuFSqzqTMz9t8PX0+Ruy+dh6IpRJQPs/NSkulF0Xt2ybX4UI7wT8atven2nfgfmnDxLCkcOO9/d/865onG4HlYMlNSXAE/KXzs5V8hD4IsJJBmt5Fna7at6Zdybbgo7yfbH+SdWD9IykEVCXtFZX0cXUoHdoBgp64z/SZPkWdurpJlaLow8PbLmvh2ot6YK64/82u2GxCFJoeRQP99IcctdmXiY9CtU63Y8zVQVa/zYU+kpLimLjh19g3Bd3m7Sq37957hqxhTldQPr1/+xyZadMkJIvOUpuzw6Yq3xB1Vl+qa/hKvvvy33EJqLRqJvfRmzuviAP/m2rtpiaxOtSWZ+KwI2rsoqH6wa2V71BAd4nSzfvq4eUDcG1RYzqYAdvsSAWQkYuSJlueUhWq1WV5Due53E/TZ+bu+uNX0406ENwGYb6VYSJTc8WD4i7mu6kbw5yquHbLE7GSzyvTZaZmiwvEJYfnKXg/QFEZNmLUmHHdBjUmTJrSpde0GX1mzWnb16PD/AS9JvotWLRk2YpVa9Zt2LRl245dew4c2v+Dd+TYiVNnztU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ey4q0zuS/SFJuVZ5XVzcgJa9tyihLLw81zlPu3fFEA2ABNiTtdxXFrl1uClX8I3Ay6NPrLk+he30lU/44OPz4ut11DNMnVrMagP+RFEA4828/Hc9LENT5h5xJ3R8VsCExTYqILdLgn95O9/gkd9gPNIsAAJrnuwD8k7BfB14OS1FXGLuUzGQOJxNAA4xORkAGgYjPsTmZCBRwOpkEZJhzsiZYQ8DOKcCEPECA4TMAwApW7E7GQBuOnUwAGlymiDdnkOIw58XJRNCDT4TEEgydrAnRGDMiBcwxO/ognRFWjL6/+u9a4RSd6wd/89+YtcCMcvvp/uO8kLB/dP/wad07Ms5lhIxe8uvhNfnhWQb/1o6DpYj/dZYe23X/LWvHt4cP3pxC9wMy3H2Qzgire/rom3phaoXTI68fIt/+b8xaYE64xvsL/8d5oa33YX8UEN8VFrrGtniXS35dkZm8fflZBv8TmVjOtviRP1GP7brvcljj2wHdUhJV9vUXh3WpzL5rNQ8phCsLNhy48OAjAGFQgxAiQowkzfKirOqNZqvd6fb6g+FoPJnO5ovlar3Z7vaH4+l8ud7uj2dID++shYA/3YgLcL4iNeLOWOtAYI5u65DzpPi8DFTwhWeFhyUXkw4yBLmROBflYHOLOCGCPHKA3ToFTuBilGxhhB/LqH66EUhF+m5wxv+oC867iCtQeaHyKdn60CnVfN4LjW4BqYR3apcOuO3ULKKLiq0t3Cwdbh0998SzmgScDbogAN1EuWeg54wzsls60RaQTdU9N7LeRYNJJ+CeLA0V6Ap9CXxK0KgppAVYGPehYD0zfC7Z1zfcVfILhtFtxlM3FFwZcu4JgkUFE1txCbk2qNpsJHmO56KVWFIG5+6MbdvYAJj2WRWfI93LHzNxql5lQH6udEU2hrPrNpc6FFUcscND+K9vUu2j4TQuxh0A') format('woff2');} .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
将iconfont.css放入根目录下的common目录中
在根目录找到App.vue 在style中引入iconfont.css
<style> /* 引入阿里图标库 */ @import './common/iconfont.css'; </style>
使用图标时加入对应class名 例如:
<view class="icon iconfont icon-zhaopian"></view>
图标可以更改颜色并使用渐变色 例如:
.icon { background-image: linear-gradient(to top, #44B8FF 0%, #a6c1ee 100%); color: transparent; background-clip: text; }