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

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

  1. td样式 设置
td{
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
}
  1. table 样式设置
style="table-layout: fixed;"
  1. td 设置
<td title="内容"></td>
posted @ 2020-11-02 20:35  xppp11  阅读(947)  评论(0编辑  收藏  举报