CSS3 word-wrap Property

来源:互联网 发布:deepin linux 15.4.1 编辑:程序博客网 时间:2024/06/04 23:27

CSS Reference CompleteCSS Reference

Example

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

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

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The word-wrap property is supported in all major browsers.


Definition and Usage

The word-wrap property allows long words to be able to be brokenand wrap onto the next line.

Default value:normalInherited:yesVersion:CSS3JavaScript syntax:object.style.wordWrap="break-word"

Syntax

word-wrap: normal|break-word;

ValueDescriptionnormalBreak words only at allowed break pointsbreak-wordAllows unbreakable words to be broken

Related Pages

CSS3 tutorial: CSS3 Text Effects

原创粉丝点击