学习移动端第一天
一、如何使用字体图标
1.复制相关的文件到fonts文件夹里面
分别为根目录 iconfont.css / iconfont.ttf / iconfont.woff / iconfont.woff2 这4个文件
2.引入css
3.使用类名引入字体图标
示例:
第一个iconfont 是这个盒子的字体图标。
第二个icon-map是告诉这个是用的哪个小图标
4使用unicode编码表达方式引入字体图标
示例:
注意:css指定当前标签的文字字体图标必须要声明字体。
示例:strong { font-family: 'iconfont';}
5.使用伪元素字体图标
示例代码:
html 部分 :
学习移动端第一天最先出现在Python成神之路。
相关内容
- Unifi – Ubiquiti
- Disable UnUsed Background Services & Remove Built-in Useless Components and Features to Speed up Windows System
- Free and Easy Way to Sync Your Local Folder to Cloud Drives Folder (Mount to Local then Sync)
- 琳琅の小屋
- Cloudflare R2 Storage Integrates with ShareX
- Azure Cyber Security Assessment Tool (CSAT) / Tenant Security Scan

共有 0 条评论