今晚看到了无双老师关于word-wrap,word-break区别的讲解  http://www.cnblogs.com/2050/archive/2012/08/10/2632256.html

受益匪浅,特此在做一下自己的总结

word-wrap

  对长单词进行折断,对长单词首先换行看第二行是否可以容纳,若不能,在第二行强制折断  默认值为normal 折断值为break-world

word-break

  对长单词进行折断,直接强制折断,不换行  默认值为normal  折断值为break-all

text-wrap

  对文本折行,但是目前主流的浏览器都不支持该属性,所以无需考虑

  

以下段代码为例

<!DOCTYPE html>
<html>
<head>
<style>
p.test
{
width:11em;
border:1px solid #000000;
/*
word-wrap:break-word;
word-break:break-all;
*/
}
</style>
</head>
<body> <p class="test">this asdsadasdasadsadlongwordthisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.</p> </body>
</html>

不设置换行时

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjoAAACfCAIAAAB/ZOTjAAAPiklEQVR4nO3d7bmjIBCGYTuyIguymzSxHaSf7I8YHWAGkODkkDz3n73ORhEReeNHdHoAAPDnTZ+uAAAAZcQVAGAAxBUAYADEFQBgANM/AAD+vOPo6t+/fx+MTQAAMogrAMAAiCsAwACIKwDAAIgrAMAAiCsAwACIKwDAAIgrAMAAiCsAwACIKwDAAIgrAMAAiCsAwACIKwDAAIgrAMAAiCsAwACIKwDAAKriagISLv0TADa1ceVSGQyDLgHAGXGFFnQJAM6IK7SgSwBwRlyhBV0CgLO34uq2TNO03PSZ7us8TfN6f69++JuIKwDOTsXVbQkDiLj6WcQVAGdn4ioJoGxc4ZsRVwCcEVdoQVwBcFYbV7cl+InoM7S2uLqv8/7BEV5RuImJOEM4PuIKgLP3j66O/3om0iuw5NT3dRZJdl9XjsgGR1wBcPZ+XFlnB8XU3HXxdYgrAM76XruSR1Fy6udhGIH1PYgrAM4uiCt5AnCfWly64t6ML0BcAXDmFVdyDo6zxkdcAXDmHFeP+LYLjIm4AuDs9FMtZNLUxtV9XY7Yih+NgRERVwCcnXxm4OvnV8Hvro4JzaMr+dMssuoLEFcAnPFEd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HeOq9qq4H3EFQBnHeMqdwBz3BRx4dFVXVXQA3EFwFmnuMqHxH6qLirikrgirzwQVwCc9Yor7e48eWfgNlk0Vf6uvca4squS3FSPVsQVAGfd4uohz/hlbuLTAmvSD4da48qqCnHVD3EFwNlffsQt/i66BABnxBVa0CUAOCOu0IIuAcAZcYUWdAkAzogrtKBLAHBWG1dAxKV/AsCmKq4AAPgs4goAMADiCgAwAOIKADAA4goAMADiCgAwAOIKADAA4goAMADiCgAwAOIKADAA4goAMADiCgAwAOIKADAA4goAMADiCgAwAOIKADAA4goAMADiCgAwAOIKADAA4goAMADiCgAwAOIKADAA4goAMADiCgAwAOIKADCA/y/vIL2YOwR5AAAAAElFTkSuQmCC" alt="" />

当为word-wrap:break-word时

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAADECAIAAAAXu4olAAAObElEQVR4nO2d2aGjMAxF0xEVURDd0MR0kH6Yj7Botx0gL1bu/ZokWN4OtjDSm8c/CEqhx3JO//79O2kBgi4RUIaSCChDSQSUoSQCylASAWUoiYAylERAGUoioAwlEVCGkggoQ0kElKEkAspQEgFlKImAMpREQBlKohtRfkCQ0kneAt2L8knjUDIBZSiJgDKUREAZSqJsKM/j4/EYZ7vQcxoej2F6nmwW9JXqHeV55HAC5Z9V5ygrOEOUocwCylASdYzyPLLj8RfQK8rPadh/OMAW4JOL4HX0r45RXhZvVT6+etG6wUyvfk4Dofw5TVjJO1dKlD2Pg1yNJ8B0Soky9ZXp6kuvfi3fgDmPfgNl6lTsVxNXGc+JCfTDKNMSWJ/7F1Be5CMg1Kc6R1mhW4vycxoPpOUrQ6hH9Y7y7iDwc+XjQndVpkfP4DiB+kcZgpZlAcpQGgFlKImAMpREQBlKIqAMJRFQhpIIKENJBJShJPp5lC/OoLrY3OfCqq+uiQ3ER9LUgDJQvqUmoMwElIFyvYAyUL6lJqDMVIOyH+BGMrLZKPJEazHKTiGa3S2mJDT3RvPY914abqlXFfUXarp0IOx4Rb8CljIfNHuY5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41fpfUs6dOaVy3exu24bp406glXmblpEa13w469MMq3Fa3qmokAHrdAuhJAfS6BdCTAuh1C6AnBdChrKpGAqBDWVWNBECHsqoaCYAOZVU1EgAdyqpqJC59Njob8PpL8rM2oKTeDboMEfpdRoJgphmg36BXg14MpfsZFU6Uf7bf9Qig/4QA+tN6Lehm3viocuIlPrRaKV6UxwwWzXihf4Ob4S4b1H9sNwgLEDTqpmIDX63Xgj7P3o7u5sSnXeGrZvyUiDM7uhXgza7JIFw493OToGdz4uNM/Wtm9h4J49+BLlvzMp2CBJzXq0HQ0znx7knIN2aWon1vGLgKukro8VJXC2c7rxZAZ/67lrUBfmfGSoq7F3R6z+VG9H4B9ODjD56+MXO8wT63oxPQG92/tQA6e9LnuLhuZvdxhIlHQAfpRK8GPfziyTzPVja0lakvddWMSgwOPxzgNZgHvfDtgaacmHeDLvPGiznxXqY+1zUzhQ8S6Ax3p8EToLsjAuhVCdGLUFZVIwHQoayqRgKgQ1lVjQRAh7KqGgmADmVVNRIR6BAk9Jdo3quKuw5BeQF0qAkBdKgJAXSoCQF0qAkBdKgJAXSoCQF0qAkBdKgJAXSoCQF0qAkBdKgJAXSoCQF0qAkBdKgJAXSoCQF0qAkBdKgJAXSoCQF0qAkBdKgJAXSoCQF0qAkBdKgJAXSoCf0DLFBIOm9aky8AAAAASUVORK5CYII=" alt="" />

可以看到,用户代理默认的会对长单词进行换行,而word-wrap默认了这一行为,但是word-break会强制忽略这一行为。

word-wrap,word-break,text-wrap的区别的更多相关文章

  1. C#,VB.NET如何将Word转换为PDF和Text

    众所周知,Word是我们日常工作中常用的办公软件之一,有时出于某种需求我们需要将Word文档转换为PDF以及Text.那么如何以C#,VB.NET编程的方式来实现这一功能呢? 下面我将分开介绍如何运用 ...

  2. Microsoft.Office.Interop.Word 创建word

    Microsoft.Office.Interop.Word 创建word 转载:http://www.cnblogs.com/chenbg2001/archive/2010/03/14/1685746 ...

  3. reverse the string word by word

    题目:Given an input string, reverse the string word by word. For example,Given s = "the sky is bl ...

  4. LeetCode 5:Given an input string, reverse the string word by word.

    problem: Given an input string, reverse the string word by word. For example: Given s = "the sk ...

  5. jquery html属性和text属性的区别

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  6. 有关于break,continue,return的区别和代码分析

    今天,用代码和结果直接解释break,continue,return的区别 1.break代码 public static void breakTest() { //break的讲解 for(int ...

  7. return、break、continue的区别

    一.定义 return:语句用于终止当前方法运行,返回到调用该方法的语句处.如有返回值,则在return后面提供相应的返回值. break:其主要用于循环语句和switch语句,其作用均是强行终止语句 ...

  8. java continue break 关键字 详解 区别 用法 标记 标签 使用 示例 联系

    本文关键词: java continue break 关键字 详解 区别  用法 标记  标签 使用 示例 联系   跳出循环 带标签的continue和break 嵌套循环  深入continue ...

  9. for循环的简介及break和continue的区别

    break和continue都是用来控制循环结构的,主要是停止循环. 1.break 有时候我们想在某种条件出现的时候终止循环而不是等到循环条件为false才终止. 这是我们可以使用break来完成. ...

  10. for循环中break与continue的区别

    1.for循环 for循环是更加简洁的循环语句,大部分情况下,for循环可以代替while循环.do-while循环. for循环的格式为: for( 初始语句 ; 执行条件 ; 增量 ){循环体}执 ...

随机推荐

  1. 从ramdisk根文件系统启动Linux成功,及使用initramfs启动linux

    下面两篇文章是ARM9论坛上的讲解ramdisk文件系统的很不错的文章 今天做了个试验,让Linux2.6.29.4从ramdisk根文件系统启动成功,总结一下. 其中涉及的内容较多,很多东西不再详述 ...

  2. memcache 存储单个KEY,数据量过大的时候性能慢!以及简单的memcache不适合用到的场景

    今天有人问到我:memcache存储大数据量,10K,100K,1M的时候,效果怎么样??我回答:不好,效果非常慢.对方问:为什么啊??我回答不上来...于是就找了点资料. memcached使用需要 ...

  3. yahoo 交易数据

    yahoo提供国内和国外股市每天的交易数据资料,这可谓一大幸事啊.http://table.finance.yahoo.com/table.csv?s=ibm&d=6&e=22& ...

  4. 多线程与网络之cookies

    1. 网络请求中的cookie 1.1 删除cooki NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCook ...

  5. 京东拍拍网 笔试 搞java的去考C++ 苦逼

    1.用C实现数字逆转,用递归实现,很简单. package 京东; public class Main { private static int a=0; public static void fun ...

  6. JDK1.5新特性(六)……Generics

    概述 Generics - This long-awaited enhancement to the type system allows a type or method to operate on ...

  7. 内省与JavaBean

    概述 JavaBean代表一类特殊的Java类,这种类主要用来存储和传递属性信息,JavaBean中的方法主要用于设置和获取这些私有属性,他们有一定的命名规则,我们可以把它们想象为一个侧重属性信息的类 ...

  8. uvalive 4670 Dominating Patterns

    在文本串中找出现次数最多的子串. 思路:AC自动机模板+修改一下print函数. #include<stdio.h> #include<math.h> #include< ...

  9. Vmware Ubuntu 虚拟机下Android开发环境搭建

    概况: 1.安装jdk: 2.安装adt-bundle: 1.安装jdk 先下载linux下的jdk,我下的是 jdk-7u13-linux-i586 :然后解压,为方便,建个文件夹--/home/x ...

  10. 当很多连接到你的数据库时,报这种错误“已超过了锁请求超时时段” SqlServer数据库正在还原的解决办法

    1)管理器不会主动刷新,需要手工刷新一下才能看到最新状态(性能方面的考虑) 2)很少情况下,恢复进程被挂起了.这个时候假设你要恢复并且回到可访问状态,要执行:  RESTORE database   ...