当前位置:网站首页>图标字体
图标字体
2022-07-27 12:48:00 【不好意思,此人不存在】
图标字体
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="/font/css/all.css">
<style> li{
list-style: none; } li::before{
/* 通过伪元素来设置图标字体 1.找到要设置图标的元素通过before或after选中 2.在content中设置字体的编码 3.设置字体的样式 fab font-family:'Font Awesome 5 Brands'; fas font-family:'Font Awesome 5 Free'; font-weight:900; */ content: '\f1b0'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: blue; margin-right: 10px; } </style>
</head>
<body>
<!-- 图标字体(iconfont) -在网页中经常需要使用一些图标,可以通过图片来引入图标 但是图片大小本身比较大,并且非常的不灵活 -所以在使用图标时,我们还可以将图标直接设置为字体, 然后呢后通过font-face的形式来对字体进行引入 -这样我们就可以通过字体的形式来使用图标 font awesome使用步骤 1.下载 英文官网下载 2.解压 3.将css和webfonts移动到项目中 4.将all.css引入到网页中 5.使用图标字体 -直接通过类名来使用图标字体 class="fas fa-bell" class="fab fa-accessible-icon" -->
<!-- <i class="fas fa-bell"></i> -->
<ul>
<li>
锄禾日当午
</li>
<li>...</li>
</ul>
<!-- 通过实体来使用图标字体: &#x图标的编码; -->
<span class="fas"></span>
</body>
</html>
边栏推荐
- About typora's inability to log in after March 9, 2022 -- resolved
- multi-table query
- 最新版泛域名证书申请
- 延迟队列DelayQueue性能测试
- Application parameters of Southern biotech HRP labeled avidin avidin avidin
- heap
- SSM practical project - front back separation (easy to understand)
- Poj1548 robots [bipartite graph minimum path coverage]
- MySQL扩展
- Initializing database error after reinstalling MySQL
猜你喜欢

Seata's landing practice in ant International Banking

The sparksubmit. Main () method submits external parameters and remotely submits the standalone cluster task

MySQL扩展

Security measures for tcp/ip protocol vulnerabilities

ArrayList常用方法总结

Vi. analysis of makefile.build

C program debugging and exception handling (try catch)

Initializing database error after reinstalling MySQL

HDU1698_ Just a Hook

BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)
随机推荐
概述静态内部类与非静态内部类
A survey of video game addictive behavior research
改变线程状态的方法
Article reproduction: srcnn
Detail the execution process of JDBC query method
Feign的两个调用处理器
Detail throw and throws
视频游戏沉迷行为研究综述
pg同步多张数据表至mysql 有办法简化配置吗?
PySide6/PyQt开发经验总结(2) - 设置快捷键
Do you really understand CMS garbage collector?
Plus SBOM: assembly line BOM pbom
Plus版SBOM:流水线物料清单PBOM
详述HashSet的add方法
Poj2594 treasure exploration [bipartite graph minimum path coverage] [Floyd]
CVPR22 | 关系意识的图神经架构搜索
JS true / false array conversion
Poj2446 chessboard [maximum matching of bipartite graph]
聊聊feign组件的一个重要类RefectiveFeign
B站713故障后的多活容灾建设|TakinTalks大咖分享