Home > Web Front-end > uni-app > How to use icons in uniapp

How to use icons in uniapp

coldplay.xixi
Release: 2023-01-13 00:44:16
Original
9161 people have browsed it

How to use icons in uniapp: First add the required icons to the shopping cart and download them locally [unzip and put into the project]; then introduce them in m[ain.js]; finally, directly on the page Just use it through the style class name.

How to use icons in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, Dell G3 computer.

Recommended (free): uni-app development tutorial

How to use icons in uniapp:

1. Add the small icons you need to the shopping cart

How to use icons in uniapp

2. Click the shopping cart to [Add the small icons to the project]

How to use icons in uniapp

3. Finally download it locally [unzip it and put it into the project]

How to use icons in uniapp

4. As follows:

How to use icons in uniapp

5. Introduce

import './style/iconfont.css'
Copy after login

in main.js. 6. Finally, use

<text class="iconfont icon-saoyisao"></text>
Copy after login

directly in the page through the style class name. Free learning recommendations: Programming Video

The above is the detailed content of How to use icons in uniapp. For more information, please follow other related articles on the PHP Chinese website!

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