多瀏覽器支援CSS 容器內容超出(溢出)支援自動換行

來源:互聯網
上載者:User

<br /><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>CSS容器內容超出(溢出)自動換行,CSS容器內容超出(溢出)自動換行,CSS容器內容超出(溢出)自動換行<p>
[Ctrl+A 全選 注:如需引入外部Js需重新整理才能執行]
相關文章

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.