CSS3 Properties

王佶
2017/06/19 17:05
统计中

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;
}

本文为 王佶 原创

发布在 http://blog.minws.com/css3-properties/

如有转载,请标明来源!

作者信息
姓名:王佶
地址:南通
签名:美好的程序媛
热评文章
最新评论
文章概览