textarea标签处理的文本内容,在html中显示时需处理特殊换行,使用:
white-space:break-spaces;
white-space: pre-line 保留元素内的换行符,但不保留空格。文本将正常换行。
white-space: pre-wrap 保留元素内的换行符和空格。文本将正常换行
white-space: break-spaces 保留元素内的换行符和空格。行尾的空白不会悬挂,但会换行到下一行。