Home > Web Front-end > HTML Tutorial > Textarea line break problem_html/css_WEB-ITnose

Textarea line break problem_html/css_WEB-ITnose

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

I added wrap="physical" to the textarea attribute, but automatic line breaks are displayed when typing, but once sent to the server, there are no line breaks. Using js to get the value of textarea also has no line breaks.


Reply to the discussion (solution)

I added wrap="physical" to the textarea attribute, but it shows automatic line wrapping when typing, but once it is sent to the server No more newlines. Using js to get the value of textarea also has no line breaks.

What it says about automatic line wrapping of text in textarea is not what you understand. Add
to the text in your textarea.

You can convert it when storing/reading. n is

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