Font Awesome (a set of great icon libraries), fontawesome
Font Awesome is a very convenient icon library. These icons are vector images and saved in.svg
. These icons are the same as the font. You can specify their size through pixel units, which will inherit the font size of its parent HTML element.
You can add the Font Awesome icon library to any application. The method is simple. You only need to add the following code to your HTML header:
<link rel="stylesheet" href="//cdn.bootcss.com/font-awesome/4.2.0/css/font-awesome.min.css"/>
Of course you can also download to local use, address: http://fontawesome.io/http://fontawesome.dashgame.com)
(The link Path depends on the location where the link is downloaded and saved );
Usage:
i
At first, the element is generally used to enable other elements to have italic functions, but now it is generally used to refer to icons. You can add the class attribute in Font Awesomei
Element to change it to an icon, for example:
<i class="fa fa-info-circle"></i>
Use Case:
The official website provides a detailed use case Oh (you can try it yourself, the truth comes from practice): http://fontawesome.io/examples/