当前位置:网站首页>Wechat applet uses color font icon (transcript)
Wechat applet uses color font icon (transcript)
2022-04-22 06:44:00 【Zhou zhouchi】
How do wechat applets use color font icons
-
Select the corresponding icon in Alibaba vector icon library , Add to your own project , Download to local

-
adopt
npmGlobal importiconfont-toolsTools , grammar :npm i -g iconfont-tools -
Again
iconfont-tools// Generate applet specific files ( You can choose a name or use the default name , Using the default name is alwaysenter) -
Get the following file directory structure ,
iconfont-weappIs the applet color icon file

-
hold
iconfont-weappincssCopy files to project , stayapp.vueGlobal import iniconfont-weappIn the documenticonfont-weapp-icon.cssThe style file
@import url('./static/font/iconfont-weapp/iconfont-weapp-icon.css'); // Color icons -
Use
<text class="t-icon t-icon-jiagepaixu" style="width: 20rpx;height: 20rpx;" />
Cannot pass font-size Set size , Only use width、height Set icon size
t-icon yes iconfont-weapp-icon.css The initial style defined in ( The name can certainly be changed ),t-icon-jiagepaixu The back section of the middle can be here and iconfont-weapp-icon.css View in ,( Only iconfont-weapp-icon.css Some of them can be used as color icons ,demo_index.html Just for reference )

design sketch


It is not difficult for wechat applet to use font icons , Writing this article is mainly to take notes , I'm afraid I'll forget later
版权声明
本文为[Zhou zhouchi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220557472635.html
边栏推荐
- Spent four days painstakingly writing all the notes of MySQL, which is very suitable for beginners.
- PostgreSQL 13.3, 12.7, 11.12, 10.17 and 9.6.22 have been released!
- Mysql 与Oracle使用
- 创新实训(五)配置信息
- Copu helped Peking University Graduate open source public elective course - Open Source PostgreSQL R & D course successfully enter Peking University
- Excel工作表忘记密码后取消密码
- JS 获取屏幕,浏览器,网页高度宽度
- EXCEL VLOOKUP函数的使用(二)
- nodejs+Express+mongodb
- Wechat applet interface encapsulation (uniapp)
猜你喜欢
随机推荐
Pgdoucer best practices: a series
EXCEL 保护工作表、工作薄不被破坏
从零开始学安卓(kotlin)一 ——入门
Redis取出数据乱码问题
The difference between equalsignorecase() and equals()
ArcGIS 纵断面分析
剑指offer:数据流中的中位数(优先队列 大顶堆小顶堆 leetcode 295)
Redis fetches out data with garbled code
正则验证
ArcGIS 观景点视域分析
Automatically add partitions for PostgreSQL tables
封装uni网络请求(uni.request)
Liang Kun, CTO of Shumei technology, suggested: technology + operation combination to prevent and control "pig killing plate"
MongoDB初接触——基础介绍篇
Arduino UNO r3+LCD1602+DHT11
POM文件浅析
区间列表的交集
一套sql语句同时支持Oracle跟Mysql?
剑指offer:二叉树中和为某一值的路径(回溯)
JS encodes and decodes the URL (the difference between the three methods)









