textarea换行符的问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:22:54
Original
971 people have browsed it

我在textarea的属性里加了 wrap="physical",可是输入的时候显示自动换行,但是一旦向服务器发送的时候就没有换行符了。用js获取textarea的值也是没有换行符的。


回复讨论(解决方案)

我在textarea的属性里加了 wrap="physical",可是输入的时候显示自动换行,但是一旦向服务器发送的时候就没有换行符了。用js获取textarea的值也是没有换行符的。

它说的textarea内文字自动换行不是你理解的给你的textarea中的文字给你加

你可以在存储/读取的时候转换\n为

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!