uni-app custom font icons in the navigation bar custom buttons

1. Go to iconfont download the font icon

https://www.iconfont.cn/collections/index?spm=a313x.7781069.1998910419.d33146d14&type=3

Select an icon

Create a project and add an icon in, select unicode, download to a local

Extracting, copy the file to the uni-app .ttl project in static

Add buttons and icons pages.json font file in which the text is '\ u' together with the back four hexadecimal value

Preview again results in Figure

Completed.

Published 32 original articles · won praise 9 · views 70000 +

Guess you like

Origin blog.csdn.net/yi__cao/article/details/102749831