css text-wrap属性用于规定文本的换行(折行)规则,其语法是text-wrap: normal|none|unrestricted|suppress;目前主流浏览器都不支持text-wrap属性。

css text-wrap属性怎么用?
作用:text-wrap 属性规定文本的换行(折行)规则。
语法:
text-wrap: normal|none|unrestricted|suppress
说明:
立即学习“前端免费学习笔记(深入)”;
normal 只在允许的换行点进行换行。
none 不换行。元素无法容纳的文本会溢出。
unrestricted 在任意两个字符间换行。
suppress 压缩元素中的换行。浏览器只在行中没有其他有效换行点时进行换行。
注释:目前主流浏览器都不支持 text-wrap 属性。
css text-wrap属性使用示例
This paragraph contains some text. This line should not breake or wrap to the next line.
This paragraph contains some text: The line breaks as normal.
注释:目前主流浏览器都不支持 text-wrap 属性。
效果输出:











