可是为什么会有这种问题呢,是因为浏览器将空格、回车、tab键等字符都当做一个空格处理,所以当你回车的时候会有一个间隙。 https://blog.csdn.net/weixin_34377919/article/details/94152508