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]