In the company project or personal site often there is a need, that is, at the bottom of the site to add some of their favorite social contacts, such as QQ, Weibo, Twitter and so on, if the traditional transduction way to make these icons will have two drawbacks:
1. Front-end engineers may not understand the art transduction related technology, and some small companies do not have the art of this position, so that their own material will be very troublesome
2. Traditional pictures can not flexibly adjust the size, such as when the image is enlarged after the content will become very vague, unable to adapt to more complex requirements
Using the font awesome This set of open-source icon libraries will be a good solution to the above two issues.
Specific steps for using font awesome:
1. Download the relevant compression package to the official website
2. After extracting four folders, font-awesome.css the CSS folder into your project CSS directory.
It's also very important! Be sure to put the font folder in your project CSS folder sibling directory, otherwise it will not display the icon correctly, many tutorials on the web did not mention this
3. The introduction of FONT-AWESOME.CSS in your HTML file can be used directly
Test:
Add at random location in HTML:
1 < class= "fa fa-qq"></span>
The page will normally display a QQ icon indicating that the font awesome is working properly
You can also add related classes, such as FA-QQ-LG increase the size of the icon, related methods can go to the official website to see the specific documents
Use the font awesome to make websites common social tools contact icon