How to introduce icons into web development

angryTom
Release: 2019-11-30 15:35:01
forward
3256 people have browsed it

How to introduce icons into web development

How to introduce icons in HTML

1. Quote something in the header. Quote something in HTML. Head quote

<script defer src="https://use.fontawesome.com/releases/v5.0.8/js/all.js"></script>
Copy after login

2, and then search for font awesome on the Internet. You can go to that official website (foreign websites are relatively slow). The following is the click to enter the Chinese website - font icon

Click on the icon library in the upper right corner

How to introduce icons into web development

3. Click on any one to enter

How to introduce icons into web development

4. Copy

and introduce it into your code >

<div><i class="fa fa-address-book-o" aria-hidden="true"></i>></div>
Copy after login

in div or Referenced in span, you can realize the functions of block elements and inline elements, regardless of the i tag. Use font-size to change the size of the icon, adjust the upper and lower heights line-height, and adjust the left and right positions text-align.

How to introduce icons into web development

Some icons cannot be referenced, the general style is given.

Recommended learning: html tutorial

The above is the detailed content of How to introduce icons into web development. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Previous article:How to use HTML