HTML 長文本換行


word-break 屬性指定單詞在到達行尾時應如何中斷。


p.a {
    word-break: break-all;
}

word-break: normal|break-all|keep-all|break-word|initial|inherit;

屬性值:

Value Description
normal 默認值。 使用默認換行符規則
break-all 按div容器長度進行換行
keep-all  Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as value "normal"
break-word To prevent overflow, word may be broken at arbitrary points
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM