How to use font-awesome icons in WeChat applet

迷茫
Release: 2017-03-25 17:01:37
Original
2726 people have browsed it

Download font-awesome font package
Open the Transfonter website and upload the font fontawesome-webfont.ttf (theoretically other file formats can also be converted, but I have not tried it yet) ), select base64 encoding, convert and download

. There is a style file in the downloaded package. After opening it, you will get the following code, and compare it with the content in font-awesome.css and add it to WeChat

## in the app.wxss file of the mini program c549c9cbbc8476b9bdd69170cb0aa1df
Then use class="fa fa-user" in the mini program, such as

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template