Skip to content

为什么为 svg 添加 display: block 的样式? #6

Description

@GreatAuk

image

发现组件默认有 display: block 的样式,不是很清楚为什么。
一般图标是当内联元素来使用的,现在display: block的样式,导致图标默认会占用一整行,使用的时候经常要重置样式成 inline-block

Activity

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

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions