Fe-interview: [html] 第65天 html直接输入多个空格为什么只能显示一个空格?

Created on 19 Jun 2019  ·  4Comments  ·  Source: haizlin/fe-interview

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

html

Most helpful comment

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

All 4 comments

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

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

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

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

Was this page helpful?
0 / 5 - 0 ratings