超长英文自动换行_多浏览器支持

Opera不支持
<style type="text/css"> 
.linebr { 
    clear: both; /* 清除左右浮动 */ 
    width: 100px; /* 必须定义宽度 */ 
    word-break: break-word; /* 文本行的任意字内断开 */ 
    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>

<div class="linebr">
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
</div>

你可能感兴趣的:(css,浏览器,Opera,IE,HP)