CSS3 Properties

2017-06-19 / 0 评论 / 72 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2021年10月27日,已超过1121天没有更新,若内容或图片失效,请留言反馈。

CSS3 word-wrap Property

Property Values

Value : Description

  • normal : Break words only at allowed break points
  • break-word : Allows unbreakable words to be broken
  • initial : Sets this property to its default value. Read about initial
  • inherit : Inherits this property from its parent element. Read about inherit

1. break-word

Allow long words to be able to break and wrap onto the next line:

p.test {
    word-wrap: break-word;
}

2. normal

Only break words at allowed break points.

p.test {
    word-wrap: normal;
}

0

评论 (0)

取消