Beyond icon Font

Source: Internet
Author: User

A long time ago, how do we use icons?

1. Cut diagram

2. Flattening (Sprites)

Primitive Society Ah!


Font icon

Never met.

Emoji drawing text uploading SVG directly

How to use Fonts

@font-face{font-family:' FontName ';src:url (' Filename.eot ');/*ie9+*/   /*IE6-IE8*/src:url (' filename.eot #iefix ') format (' Embedded-opentype '),/*Cr,ff*/url (' filename.woff ') format (' Woff '),/*cr,ff,op,safari,android, IOS 4.2+*/url (' filename.ttf ') format (' TrueType '),/*IOS 4.1-*/url (' filename.svg#fontname ') format (' SVG '); }

Define a class to use the font

{  font-family: "Iconfont";   font-size: 16px;   font-style: normal;   font-weight: normal;   font-variant: normal;   line-height: 1;   speak: none;   -webkit-font-smoothing: antialiased;   -moz-osx-font-smoothing: grayscale;}

Get icon Encoding

<class= "Iconfont">#3301</span>

Icon vectorization normalization, let style regression CSS

<H2class= "Icon-size">There is an icon in front of the title</H2><style>. Icon-size{content:"\3436";}</style>

Beyond icon Font

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.