CSS3 importing fonts and using a different index to load characters inside the font.

Source: Internet
Author: User

The image above is the corresponding character in the normal reference font!

The page display requires only one class to be quoted.

But I found some foreign site templates inside the reference can be another way of indexing

Introduced as follows:

The first step refers to the font

?

Step Two:

?

Load class Font

Introducing CSS on the page

Here is the page display parameters, take one example:

Show Effect "


He refers to this icon in the span tag but does not specify our normal mode for example Icon-car so instead of unifying the icon with an HTML character encoding & #61xxx

I opened font view with TypeTool3 Font Viewer, and did not find anything corresponding to the beginning of 61xx

Such as


My question that corresponding index 61xx is how to calculate out ...

Please Daniel to help answer some, O (∩_∩) o Thank you





Baidu Daniel Mail reply:


Just quote Unicode code bits are different in the system. 61700 is the result of hexadecimal f104 turning into decimal.

CSS, the reference character is written in theiconcorresponding to the pseudo-elementcontentattribute, such asAngle-leftThis icon corresponds to theCSSare:content: "\f104";?f104It's the character.UnicodeCoding

In addition to the common pre-named   < > HTML  unicode html specification:

Http://www.w3.org/TR/html/syntax.html#character-references

Decimal References: 61700;

Hex Reference: & #xf104;



CSS3 importing fonts and using a different index to load characters inside the 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: info-contact@alibabacloud.com 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.