表格内容过多,如何用省略号代替

表格内容过多省略 鼠标移上去显示全部内容

  1. td样式 设置
td{
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
}
  1. table 样式设置
style="table-layout: fixed;"
  1. td 设置
<td title="内容"></td>
原文地址:https://www.cnblogs.com/xp-thebest/p/13916343.html