Skip to content

[html] 第65天 html直接输入多个空格为什么只能显示一个空格? #299

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第65天 html直接输入多个空格为什么只能显示一个空格?

Activity

changed the title [-][html] 第64天 html直接输入多个空格为什么只能显示一个空格?[/-] [+][html] 第65天 html直接输入多个空格为什么只能显示一个空格?[/+] on Jun 19, 2019
liuxiaole

liuxiaole commented on Jun 19, 2019

@liuxiaole

该行为由 CSS white-space 控制,其默认值 normal 的表现即为多个空格压缩成一个。

xiangshuo1992

xiangshuo1992 commented on Jun 20, 2019

@xiangshuo1992
Contributor

接上,设置为pre-wrap,pre等属性值,是可以解决这个问题的

yxkhaha

yxkhaha commented on Jun 20, 2019

@yxkhaha
  • 浏览器默认输入多个空格只显示一个
smile-2008

smile-2008 commented on Jan 4, 2021

@smile-2008

该行为由 CSS white-space 控制,其默认值 normal 的表现即为多个空格压缩成一个。

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

        @liuxiaole@smile-2008@haizhilin2013@xiangshuo1992@yxkhaha

        Issue actions

          [html] 第65天 html直接输入多个空格为什么只能显示一个空格? · Issue #299 · haizlin/fe-interview