Multi-browser support for CSS container content exceeding (overflow) Support for automatic line feed _ experience exchange

Source: Internet
Author: User
Perfect support for IE, Firefox, Opera, and other browsers.

<Style type = "text/css">. linebr {clear: both;/* clear the Left and Right floating */width: 100px;/* must define the width */word-break: break-word; /* disconnect any text line */word-wrap: break-word;/* IE */white-space:-moz-pre-wrap; /* Mozilla */white-space:-hp-pre-wrap;/* HP printers */white-space:-o-pre-wrap; /* Opera 7 */white-space:-pre-wrap;/* Opera 4-6 */white-space: pre;/* CSS2 */white-space: pre-wrap;/* CSS 2.1 */white-space: pre-line;/* CSS 3 (and 2.1 as well, actually) */} </style> <p class = "linebr"> CSS container content exceeded (overflow) automatic line feed, CSS container content exceeded (overflow) automatic line feed, CSS container content exceeded (overflow) automatic line feed </p>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

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.