Labels let 

Source: Internet
Author: User

When the data is inserted into the library by <textarea>, it becomes a line when it is taken, and the <pre> tag can be used as the input format.

It's time to add some CSS styles to <pre>.

The following is the referenced content:

<style>
Pre {
White-space:pre-wrap; /* css-3 */
White-space:-moz-pre-wrap; /* Mozilla, since 1999 */
White-space:-pre-wrap; /* Opera 4-6 */
White-space:-o-pre-wrap; /* Opera 7 */
Word-wrap:break-word; /* Internet Explorer 5.5+ */
Word-break:break-all;
Overflow:hidden;
}
</style>

The CSS scheme allows the text in the pre tag to wrap, and I've tested it on all my browsers, all supported, Ie6,ie7, IE8, Firefox, Opera, Safari and Chrome.

The boundary is exceeded only if you narrow the window to a width less than 20 characters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.