Skip to content

[css] 第740天 说说字体图标的三种方式有什么区别?(unicode/font-class/symbol) #3861

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第740天 说说字体图标的三种方式有什么区别?(unicode/font-class/symbol)

3+1官网

我也要出题

Activity

zrtch

zrtch commented on Apr 25, 2021

@zrtch

unicode是兼容性最好的,缺点无非就是书写不直观,语意不明确。 font-class可以理解他是unicode的增强版,较易分辨这个icon是什么,语意明确, 书写也更直观。symbol其实就是做了一个svg的集合,支持多色图标,但是浏览器渲染svg的性能一般,但他大概率也是未来的主流。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@zrtch

        Issue actions

          [css] 第740天 说说字体图标的三种方式有什么区别?(unicode/font-class/symbol) · Issue #3861 · haizlin/fe-interview