Home >Web Front-end >CSS Tutorial >CSS generates commonly used icon styles

CSS generates commonly used icon styles

php中世界最好的语言
php中世界最好的语言Original
2018-03-21 13:17:312495browse

This time I will bring you the commonly used icon styles generated by CSS. What are the precautions for generating commonly used icon styles by CSS. Here are practical cases, let’s take a look.

Basic Icons:

You can use Font Awesome icons almost anywhere by using the CSS prefix fa, followed by the icon name. Font Awesome is designed for use with inline elements. We usually prefer to use because it's more concise. But in fact, using can be more semantic.

<i class="fa fa-camera-retro"></i> fa-camera-retro

Note: If you modify the font size of the icon container, the icon size will change accordingly. The same changes will also happen to colors, shadows, and otherany CSS-supported effects.

Remember to introduce when using:

<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to php Chinese website Other related articles!

Recommended reading:

Detailed explanation of the use of pointer-events in css3

Completely use CSS to center elements

The above is the detailed content of CSS generates commonly used icon styles. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn