Font Awesome使用方法
1.下载
https://fontawesome.com/
2.解压
3.将all.min.css复制到项目中,把下载好的字体文件放到assets文件夹下
4.将all.css引入到网页中
<!doctype html> <html lang="zh"> <head> <meta charset="utf-8"> <title>main</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="stylesheet" type="text/css" href="/assets/css/fontawesome-all.min.css?v=5.13.1"> </head> <body></body> </html>
5.使用图标字体
<i class="fas fa-plus"></i>