table单元格内容超出长度.省略
/*table 单元格内容长度超长隐藏,移入显示*/ .td_300 {width: 300px;height: 50px;overflow: hidden;white-space: nowrap;text-overflow:ellipsis; } .td_300:hover {overflow: visible; // 内容不会被修剪,会呈现在元素框之外animation: 3s siderbar linear infinite normal;z-index: 10;word-wrap:break-word;word-break: break-all;width: 300px; }
<table>
<tr>
<td>编号</td>
<td>名称</td>
<td>长度</td>
</tr>
<tr>
<td><div class="box box5">编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号编号</div></td>
<td><div class="box box5">名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称名称</div></td>
<td>长度</td>
</tr>
</table>