td标签内的内容过长导致的问题的解决办法

时间:2021-10-23 10:59:42

问题描述:在开发过程中,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/zEmvoh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8F1/4/fnYj5+xHmend/Nenm4J/Pfp8QF/aKk/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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r9MXl+motKn/h310RUm6id1YMkgs/Aml/GjwJWQ4LnSXPLBW7OhtUl9EQjzaCDcyhIUleHM9SEq9QMZpQIKLksbQHqpg94q616051K8kh8CroSEwJVxub7Z9F3nyNa+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&num;正则&lowbar;取出标签内的内容(非贪婪)

    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&num; 解析excel时,字段内有内容,却读取不到的解决方法

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

  8. Asp&period;Net保存session的三种方法 &lpar;Dll文件更新导致session丢失的解决办法&rpar;

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

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

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

随机推荐

  1. Programming Language A 学习笔记(二)

    1. 语法糖--元组的"名称引用"与"位置引用": (e1,...,en) <=> {1=e1,...,n=en} 类型:t1 * - * tn & ...

  2. android Handler&period;btionMessage&lpar;&rpar;与Message&period;obtain&lpar;&rpar;的区别

    类概述 定义一个包含任意类型的描述数据对象,此对象可以发送给Handler.对象包含两个额外的int字段和一个额外的对象字段,这样可以使得在很多情况下不用做分配工作. 尽管Message的构造器是公开 ...

  3. Android ANR分析

    1.发生anr时手机会生产traces文件 拉取trace文件:adb pull data/anr/traces.txt ./mytraces.txt 保存路径 参考

  4. Android的Intent作用

    Android应用程序中有三个核心组件Activity.Services.Broadcast Receiver. Intent 提供应用程序之间的的交互机制,负责对一次操作的动作,动作涉及的数据,附加 ...

  5. SGU 538&period; Emoticons 水题

    538. Emoticons 题目连接: http://acm.sgu.ru/problem.php?contest=0&problem=538 Description A berland n ...

  6. 用js对象创建链表

    //以下是一个链表类 function LinkedList(){ //Node表示要加入列表的项 var Node=function(element){ this.element=element; ...

  7. 探究foreach对于迭代变量的封装性的研究

    众所周知教科书上对于foreach之中的注释是在遍历过程中无法改变其遍历的元素例如声明一个数组 ,,,}; foreach(int m in ii){ m = ;//错误 “m”是一个“foreach ...

  8. 如何通过Git GUI将自己本地的项目上传至Github(转)

    githud是一个程序员以后成长都会使用到的,先不说很多优秀的开源框架都在这上面发布,光是用来管理自己的demo都已经让人感到很方便,用得也很顺畅.而真正让我下定决心使用github的原因是因为两次误 ...

  9. Python 读、写、追加csv文件详细以及注意事项

    一.利用csv库创建文件 首先导入csv文件 import csv 根据指定的path创建文件: def create_csv(path): with open(path, "w+&quot ...

  10. Spring Cloud 入门教程&lpar;一&rpar;&colon; 服务注册

    1.  什么是Spring Cloud? Spring提供了一系列工具,可以帮助开发人员迅速搭建分布式系统中的公共组件(比如:配置管理,服务发现,断路器,智能路由,微代理,控制总线,一次性令牌,全局锁 ...