In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today Xiaobian to share with you how to set html textarea does not change the line display related knowledge points, detailed content, clear logic, I believe most people are still too familiar with this knowledge, so share this article for everyone to refer to, I hope you read this article after some harvest, let's learn about it together.
In html, you can use the wrap attribute to set textarea to display without wrapping. The function of this attribute is to specify how the text in the text area wraps when submitted in the form. When the value of the attribute is set to "off," the text will be displayed without wrapping. The syntax is "."
Operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
html How to set textarea not to display newlines
The wrap attribute specifies how the text in the text area wraps when the form is submitted.
The wrap attribute is new to tags in HTML5.
The syntax is:
Of which:
soft By default, newlines are displayed when the maximum width of the element is reached, but newlines are not inserted automatically, that is, no newlines are inserted when the form is submitted.
hard The browser automatically inserts a newline character (CR+LF) when the text reaches the maximum width of the element. In other words, the submission form is also submitted to newline. When using "hard," you need to specify the cols attribute.
Examples are as follows:
Rookie tutorial (runoob.com) I am a text box. I am a text box. I am a text box. I am a text box. I am a text box.
Output:
The above is "html how to set textarea not line break display" all the content of this article, thank you for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.