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

Textarea line break problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:22:541000browse

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

Statement:
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