问题解决方式很简单: <textarea.....> ....内容..... </textarea> 这就是产生“空格”的原因。写成下面这样就可以了: <textarea.....>....内容.....</textarea>