table表格单元格设置文字溢出用省略号表示


table表格单元格设置文字溢出用省略号表示,但是没有效果;

解决:

在table加样式:table-layout:fixed;

td加

td{
?      overflow: hidden;
?      text-overflow: ellipsis;
?      white-space: nowrap;  
?   }
CSS