Skip to content

[css] 第664天 如何将文字设为等宽? #3537

@haizhilin2013

Description

@haizhilin2013
Collaborator

第664天 如何将文字设为等宽?

3+1官网

我也要出题

Activity

pkcile

pkcile commented on Feb 8, 2021

@pkcile

用选择器选中文字后,设置如下声明(属性:值)

font-family: monospace;

其中monospace直译为等宽字体,设置等宽字体后,英文字符每个字符的宽度相同,但英文字符和中文字符的宽度是不同的

其中,font-family后的值可为通用字体系列(如serif衬线、sans-serif非衬线、monospace等宽、cursive草书……),也可为特定字体系列(如'Gill Sans', 'Gill Sans MT'……)

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@pkcile

        Issue actions

          [css] 第664天 如何将文字设为等宽? · Issue #3537 · haizlin/fe-interview