输入五个空格为什么会显示一个呢,按理说输入空格不起作用应该一个都没有的吧,不解?
phpcn_u233
phpcn_u233 2016-12-20 14:00:05
0
3
1323

输入五个空格为什么会显示一个呢,按理说输入空格不起作用应该一个都没有的吧,不解

phpcn_u233
phpcn_u233

reply all(3)
数据分析师

Why does one appear when entering five spaces? Logically speaking, if entering spaces does not work, there should be none, right? I don’t understand? -PHP Chinese website Q&A-Why does one appear when entering five spaces? Logically speaking, if entering spaces does not work, there should be none, right? I don’t understand? -PHP Chinese website Q&A

Please watch and learn.

我是灰太狼

用键盘敲的空格会过滤成一个空格,一般不建议使用键盘输入空格,空格可以用“nbsp”来表示

阿神

这些要转义的,比如在HTML中,回车是

<br>

,单个空格是有效的,但多个连在一起的空格只会识别成一个空格,要转义成

&nbsp;

才有效

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template