One: We are using iconfont-Alibaba vector icon library here , you can click here to enter the official website.
First, we find the icons we need to add to the shopping cart:
Second, click the cart to add to the item:
Under normal circumstances, it will automatically jump to my project page after adding:
If there is no jump or there is already a selected icon in our project, we can go to the home page and select resource management -> select my project:
The code displayed on the page obtained after double-clicking:
Two: enter our small program project to use
Copy and paste it into our wxss file:
Then add in the wxml file
<text class="icon-wodezixuanbeifen"></text>
The displayed effect:
If you need to change the color of the icon, you can directly add style="color: "
<text style="color: pink;" class="icon-wodezixuanbeifen"></text>