Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haizhilin2013 opened this issue Jun 19, 2019 · 4 comments
Labels
html html

Comments

@haizhilin2013
Copy link
Collaborator

haizhilin2013 commented Jun 19, 2019

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

@haizhilin2013 haizhilin2013 added the html html label Jun 19, 2019
@haizhilin2013 haizhilin2013 changed the title [html] 第64天 html直接输入多个空格为什么只能显示一个空格? [html] 第65天 html直接输入多个空格为什么只能显示一个空格? Jun 19, 2019
@liuxiaole
Copy link

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

@xiangshuo1992
Copy link
Contributor

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

@yxkhaha
Copy link

yxkhaha commented Jun 20, 2019

  • 浏览器默认输入多个空格只显示一个

@MrZ2019
Copy link

MrZ2019 commented Jan 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
html html
Projects
None yet
Development

No branches or pull requests

5 participants