如何设置td中溢出内容的隐藏显示

<style type="text/css"> 
    table {
        table-layout:fixed;
    } 
    td {
        overflow:hidden;
        word-break:keep-all;
        text-overflow:ellipsis
    } 
</style> 

最核心的部分应该就是

 table-layout:fixed;

它是设置表格布局算法,我还是个小菜鸟,说深的不会,先暂且这么记下。

原文地址:https://www.cnblogs.com/DangerousBaymax/p/9086752.html