Font awesome 5 on pseudo elements

前端 未结 8 2053
面向向阳花
面向向阳花 2020-12-07 12:22

In font awesome 4 you could easily apply an icon to a :before/:after element using CSS.

Is the same possible with the new font awesome 5 JS/SVG implementation? As fr

8条回答
  •  天涯浪人
    2020-12-07 13:18

    Should you be using Fort Awesome to serve your icons then you need to add font-family: , no need to use font-weight: 400/900.

    For more info see this link:

    https://articles.fortawesome.com/how-to-using-fort-awesome-icons-f50ab11a2d2a

提交回复
热议问题