问题描述:在开发过程中,td标签中的有一个cell格中的内容过长,导致td标签高度增加,从而导致整个页面内容的不协调:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfYAAAEdCAIAAABxCtKqAAAObElEQVR4nO3dwUEbSRQEUOIiIOIhGpIhGPZgLwIbsNQ9/Wt+672T13jFqEoqDSOwH94AOnh4eEgfQj8iA3ow8QN+R/YAwH7eJz73MgNn5wlyBlq4lYmHq3iCnIEWbmXi60i4NfWdgRZuZeLrSLg19Z2BFm5l4utIuDX1nYEWbmXi60i4NfWdgRZuZeLrSLg19Z2BFm5l4utIuDX1nYEWbmXi60i4NfWdgRZuZeLrSLg19Z2BFm5l4utIuDX1nYEWbmXi60i4NfWdgRZuZeLrSLg19Z2BFm5l4utIuDX1xalggImvI+HW1BenggEmvo6EW1NfnAoGmPg6Em5NfXEqGGDi60i4NfXFqWCAia8j4dbUF6eCASa+joRbU1+cCgaY+DoSbk19cSoYYOLrSLg19cWpYICJryPh1tQXp4IBJr6OhFtTX5wKBpj4OhJuTX1xKhhg4utIuDX1xalggImvI+HW1BenggEmvo6EW1NfnAoGmPg6Em5NfXEqGGDi60i4NfXFqWCAia8j4dbUF6eCASa+joRbU1+cCgaY+DoSbk19cSoYYOKLiLc7DcapYICJLyLe7jQYp4IBJr6IeLvTYJwKBpj4IuLtToNxKhhg4ouItzsNxqlggIkvIt7uNBinggEmvoh4u9NgnAoGmPgi4u1Og3EqGGDii4i3Ow3GqWCAiS8i3u40GKeCASa+iHi702CW/MeY+CLi7U6DWfIfY+KLiLc7DWbJf4yJLyLe7jSYJf8xJr6IeLvTYFaL/B/O6f3gsunsTbzd3XOD4YXqI13UFy6Hdc7j24Z4Tyg7B42ki3p78wwadelPgktVxhtdg05uTXVRX1xD/mMuD/TzJxhdg07SRe1JsFnyH3NZhI8JRgfqW6GIjtH9+NFglvzHXKZTgkuJtzsNZsl/jIkvIt7uNJgl/zEmvoh4u9NglvzHmPgi4u1Og1nyH2Pii4i3Ow1myX+M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Yvxz5gdu7fPEf/ivZhP//sr+51Oz2ZWoO3OCif/zBO+6qep61W+nd/Nun/h//unTTfzb26/7OXhMn0fujwftORfw5enh8fn5i6s1Xx5qwy9T7kxs4m/4oveLB0nfq35f3+/R+5I9h7pp4q8Z7/zAr3gN/v8OvVf//82fcwH/PHn6+ShN/Nmd4iz+l5/eqf/98eAZ61HWLchb+RPshon/9kr829vHZk/wsr3o7OHDuwy/L3ic4L5+6eXp4enl5/dcv3+QdbgSdWeyE3/Tau9x1e+HBWn3bt61E3/9m6iTV76PcPjE/671q/ebzjj0fz1qbjmLb3El6s7kJ/7q1d7jS8LVZ/GV51BXTfyt3yQzceH7EIcV9P+J8L+/ND3VA/fbS/Ffn3w1vBJ1Z/ITP3oWb+Lf0udQ/574H6/PfP+/tGhyT198G8PnE4fvfqvPlag7k5/4ibP4jlf9dno374uJ/zjQP+z7hz/2qcfPF2o+3sB3v+ZQX32j2t8vun+fXjW6EnVv8hM/eBbf9arfDu/mfVXbr/D/+rmhP3z42OX4vv0R2I9XMb77NUf64uz87csqn17aXom6Nw////00kW+nGT6L73vVb+938678aYWuP9QA7TSa+E8f6HLVb92/OHHGcygLDyeTn/hbZu9UZ6wAZ5ef+GvO4s94xgpwetmJB6hz9WXTHaXDh2rp5xzV0o+4gAdn8e/Cjz7KpR9xUOTycE8/6ZKyHQAsYuAAtvUfX9AIu2oUysMAAAAASUVORK5CYII=" alt="" />

当td标签高度增加,而表格所在的div高度又固定的时候,会导致最后一行的内容丢失。

解决方法:

给td标签加style属性:

style="white-space:nowrap;word-break:keep-all;text-overflow:ellipsis;overflow:hidden;" width="200"

解释:

使用text-overflow:ellipsis对溢出文本显示省略号有两个好处,一是不用通过程序限定字数;二是有利于SEO。需要使用对对溢出文本显示省略号的通常是文章标题列表,这样处理对搜索引擎更友好,因为标题实际上并未被截字,而是局限于宽度而未被显示而已。
通常的做法是这样的:
1.overflow:hidden;
2.text-overflow:ellipsis;
3.-o-text-overflow:ellipsis;
4.white-space:nowrap;
其中,overflow: hidden和white-space: nowrap都是必须的否则不会显示省略号;-o-text-overflow: ellipsis针对Opera;而宽度的设定主要是针对IE6;

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWQAAABJCAIAAACFPMsrAAAElElEQVR4nO3bu7mjMBCGYTVDTB/KN6QHZdvCUgJdUAQl0IpjbyBAtxEejq8Hf2/Ac1Y2MGDze5C95goACubdBQD4HQgLACqEBQAVwgKACmEBQIWwAKCyhcXct6bt5+Wvim68Xq9jZ5ZnBn6dbnxx9QBeZg2LsYviIIzkoXC9Xud57Nv8IcICOLvoNmTuW9N141htLaIsmPvWmLbraj2IEDIAfrXanEXaV0SNw9y3QgtBZwGc3RIWay+xxkN28cdhMfedKYKBsADOLnQWay+xzl7s3V4Uc5yEBXB2ZVioV9351oRZC+B0xLCoNRdb5zB2xT0K6QCcm3AbMo5lk5HeZvgwSYIl/IPQAE4pD4uua9u+3w8LoQcJX5TQZADnlIWFv9B3b0Pm9SdZYc7Ch0iyFnOdwMkIP/eW5jrzH1pIcxvxTUrXjaQFcCr8RzIAKoQFABXCAoAKYQFAhbAAoEJYAFAhLACoEBYAVAgLACqEBQAVwgKACmEBQIWwAKCyhMXff38ulwtLlixZlsskLC4AUCF0FgBQorMAoEJnAUCFzgKACp0FABU6CwAqdBYAVOgsAKjQWQBQobMAoEJnAUDlbZ3F5Bpj7FB5dLDGNG566T4/yOQaY4xY62DD4GeeJbF45RG9/TU6WvxXeWdnkb5LMpOzD78Mbu3zw4i15pfWp54lRfG1wfe/Rvriv8qhzsIn7PZZNtgQt/7v+NHtyfHTQkobO9wOi3Wr6crFNredx5+zZUV+1A6hivRQbrwXBmtMY21TbFRz7JNrjGmaZjnw6MlynVGte4OvPUvyOflx8bVBae/7xa+DvtUawlusVveDik9eyPM72Flkn2TLPyfXxJddOKf+EvFPsW6KH73VboZV0+1L2wwPRn8Pw1CMhVd8cMlLrAkLv2v/pMk14TiOHftgTeOmcCblOuNaL/XB156l0l3F1wbL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LnSXPLBW7OhtUl9EQjzaCDcyhIUleHM9SEq9QMZpQIKLksbQHqpg94q616051K8kh8CroSEwJVxub7Z9F3nyNa+RadQuGlJfawpdN9ozF6dSj9dJGZgeiCzgtlcR6tbwRfjrtyvTduscKsWCu/Kvzo5bwvYmsuBd21Vc1x5dw67Mj50+C6NLVApMcMw/SVKUvWQDsQ81KdXvz2R9mh3XnqIQMQg465cZm958Mv59H3ELv9S4HfjZXZWA9cjsyD4Q7nGleb92ZWYrXSfHkN1vM7jkjgeySxzEwfFIemrZyre/Fcw66SX8QMZcuVOlCLLvHPW5XzafGqVd45r3BqxUy2ufABXujKubB4dqhyPG2wHbVs1pNLRu1snXYeem1IrDdk80LcZtj73dHSv5ntTd+U0Td1McJmnnnnxyw1Xbu6b9t3vn8Jx5UO58t1OW1i86+Kb0DtaiadCG60+ly6GyZGOGWclErNVG48+NTMGvdF15TWphG12/vYMuHJeurlgN3+UpLxzXDdJ9Zozr3w013xnyLsPg3LtuECCpr/i7UoncTxduW6lx/VK0gqj/vIsFpzmgbBxZendTqu43lqXZbn45epTTFuV+8Z8XvlwrnRl6hRdEt+B3tHUg8V+xHFBMSrtIy+kIOAubH3dzGCKFSpjed22hfEFeT8OfGdo9yLcfmdtllsP1jbNQ/xpnplXPpbAlel9ZYpD1/RaFQeNO6zU9w6lEmkt1hmtKJ1j8XidBxXEOp1KkJ/mRI87/h9HHPea3PDdTlFnT+VKPfnSu23DX3WlV1I5X3FMml58XPkFroQEMyWKt705nexc01Uz9ZQOHQjRE18wVsUpXmH7V6EyVlvNPAUdhhetrqNPP4i5MtYnc0dXwmtCSgAIroQUUgJAcCWkkBIAgishhZQAEFwJKaQEgOBKSCElAARXQgopASCmKwEAoKN3JQAAeOBKAIAcXAkAkPN/81MmJaKJdHYAAAAASUVORK5CYII=" alt="" />


td标签内的内容过长导致的问题的解决办法的更多相关文章

  1. IE8 下 select option 内容过长 , 展开时信息显示不全解决办法

    IE8 下 select option 内容过长 , 展开时信息显示不全 , 简单折衷的方式就是给 option 加上 title 属性 , 但是又不想一个个的修改,怎么办呢,代码如下 : //sel ...

  2. 正则匹配抓取input 隐藏输入项和 <td>标签内的内容

    这里不多作解释了,只要提供方法,如果想了解正则匹配,就去百度. 第一条是,匹配出所有的隐藏输入域 $patern = "/<input(.*?)type=\"hidden\& ...

  3. C#正则_取出标签内的内容(非贪婪)

    using System.Text.RegularExpressions; /// <summary>        /// 执行正则提取出值        /// </summar ...

  4. CSS标签内多余内容隐藏

    CSS: <style> .mazey{width:100px;} .nowrap{overflow:hidden;text-overflow:ellipsis;white-space:n ...

  5. javascript 获取标签内的内容

    js 获取标签内的内容 参考:这篇博客给了我很大的启发. http://www.cnblogs.com/breakdown/archive/2012/10/09/2716221.html 我遇到的问题 ...

  6. 总结php删除html标签和标签内的内容的方法

    来源:https://www.cnblogs.com/shaoguan/p/7336984.html 经常扒别人网站文章的坑们:我是指那种批量式采集的压根不看内容的:少不了都会用到删除html标签的函 ...

  7. C# 解析excel时,字段内有内容,却读取不到的解决方法

    C# 解析excel时,字段内有内容,却读取不到的解决方法:"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filepath + ...

  8. Asp.Net保存session的三种方法 (Dll文件更新导致session丢失的解决办法)

    1. InProc模式(默认值):asp.net将session保存到当前进程中,这种方式最快,但是不能多台服务器共享session,且会话状态数据容易丢失. <sessionState mod ...

  9. Visual Studio2012打开时弹出“遇到异常:这可能是由某个扩展导致的”错误的解决办法

    Visual Studio2012打开时弹出"遇到异常:这可能是由某个扩展导致的"错误的解决办法: 具体问题如下: 分析原因:网上搜集了以下,出现异常的原因是安装了第三方控件,然后 ...

随机推荐

  1. 04 Apache Solr: 目录结构

         通过前面的介绍,我们已经能够看到管理员界面并对Solr形成了一个感性的认识.本篇将在物理上深入了解Solr的安装目录结构和Solr示例的主目录结构.   安装目录结构 Solr 6.3.0安 ...

  2. 去空格 whitespaceAndNewlineCharacterSet和过滤字符串

    一.过滤字符串 可以使用stringByTrimmingCharactersInSet函数过滤字符串中的特殊符号 首先自己定义一个NSCharacterSet, 包含需要去除的特殊符号 NSChara ...

  3. 有关tp里搜索框的实现方法

    1:

  4. SUSE查看版本号

    suse:~ # lsb_release -dDescription: SUSE Linux Enterprise Server 10 (x86_64) suse:~ # cat /etc/SuSE- ...

  5. git conifg

    1. git config简介 我们知道config是配置的意思,那么git config命令就是对git进行一些配置.而配置一般都是写在配置文件里面,那么git的配置文件在哪里呢?互动一下,先问下大 ...

  6. 实验七 Web应用测试

    实验目的 (1)       了解Web应用测试的特点 (2)       掌握SSH分层单元测试 实验内容 以下题目均在bookstore项目上完成(请先运行数据库文件): 1.编写单元测试用例,对 ...

  7. C#实现按键精灵的'找图' '找色' '找字'的功能

    背景:游戏辅助功能通常使用按键精灵编写脚本,按键精灵的最大卖点就是能够找到画面中字,图,色,这对于模拟用户鼠标操作至关重要,这能找到道具,找到血量,实现自动打怪,自动补血,自动买卖道具,博主闲来无聊, ...

  8. maven 环境的配置 JAVA_HOME not found in your envirnment

    maven 的环境配置在配置maven前 先做好java的环境配置现在假定java已经配置好了.在环境变量中添加;maven的解压路径\bin 例如:D:\soft\java\apache-maven ...

  9. hadoop搭建初步总结

    1.安装JDK1.1上传运用软件FileZilla,将windows上的jdk压缩包放到linux的root目录下 1.2解压jdk #创建文件夹 mkdir /usr/java(不要挂在在" ...

  10. IE9控件安装方法

    打开上传页面,IE提示安装控件,点击安装   刷新网页,点击允许运行加载项,需要允许两次