首页 > Web开发 > 详细

HTML 长文本换行

时间:2018-11-18 11:01:42      阅读:178      评论:0      收藏:0      [点我收藏+]

word-break 属性指定单词在到达行尾时应如何中断。


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

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

属性值:

ValueDescription
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

技术分享图片

 

HTML 长文本换行

原文:https://www.cnblogs.com/ryanzheng/p/9976926.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!