Pseudo-class after before how to use Ali's Iconfont font

Source: Internet
Author: User
Tags hex code

Before making a cake project, the design gave me a picture (tips:["\e60d" as a small icon for the cake)


Among the cake icons, my first reaction was to do it with before. Then put the hex code of the Iconfont icon into the content.

It is so-called, the ideal is plump, but the reality is very bony. Have failed.


So, I just turned up the previous article is related to the content character encoding, poke me to view. So I changed the value of a content. Altogether was successful.


So! the problem comes. Why use only a few predefined icons. Ali's icon why not use AH.

Today, a chance, let me find a solution. Actually, it's very simple. Just copy the code below the Iconfont class name to the pseudo-class before.


Water is finished. The content level of the article is not high. Used only for memory. If I can help you, my pleasure.

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.