How to use Alibaba icon library for small programs

Time:2020-9-1

Select the Font Icon Library in the shopping cart

 

Click on the shopping cart of Alibaba icon library to come to this page and click add item

 

 

After adding the project, as shown in the figure, click font class cumulative import, click view online link, copy link URL to visit online link

After visiting the link, what the page shows is iconfont.css Copy all the CSS code of the page

 

 

Create one in the style folder iconfont.css File, paste the copy code into it and save it

 

At the global level app.wxss It introduces our Font Icon Library CSS file, so that it can be all called

 

View the icon class of the corresponding icon library

 

Introduce the corresponding iconfont class

 

 

Successfully displayed to page