固定table中的td的高度,文字显示长度过长显示.......
2014-03-27 11:01
1511 查看
css中加 .ctltable{border-collapse: collapse; table-layout:fixed} .ctltable td { text-overflow:ellipsis; overflow:hidden; white-space: nowrap;
}
<table class="ctltable">
<tr>
<td>1</td>
<td>张三</td>
</tr>
</table>
相关文章推荐
- HTML怎么让table中的td内容过长显示为固定长度,多余部分用省略号代替
- HTML怎么让table表格中的td单元格内容过长显示为固定长度,多余部分用省略号代替?
- HTML怎么让table表格中的td单元格内容过长显示为固定长度,多余部分用省略号代替?
- js实现table用鼠标改变td的宽度,固定table宽度和高度超过显示点
- 用css解决table文字溢出控制td显示字数(转)
- table td 文字超出显示省略号
- 将td中文字过长的部分变成省略号显示的小技巧
- 让文字在固定高度的div中垂直居中显示
- iPhone 处理tableview里面要显示的过长的文字
- td长度固定,内容过长,超过部分用省略号代替
- 用css解决table文字溢出控制td显示字数
- 用css控制table文字溢出显示省略号 控制td显示字数
- 关于table固定宽高以及td内容过长换行的解决办法
- 计算文字在固定宽度下 折行显示后的高度
- table 中 文字长度大于td宽度,溢出文本用“...”代替
- Table里td中的文本过长,设置不换行,随内容同行显示
- table 固定显示第一行 & 动态改变table高度
- 单元格长度固定,多余文字显示... CSS样式控制
- table的td文字过长时自动换行
- 用css解决table文字溢出控制td显示字数