在table中使显示的文本显示一行后其余用省略号表示

来源:互联网 发布:三星淘宝官方旗舰店 编辑:程序博客网 时间:2024/06/04 20:15

只需更改样式即可:

<table id="dataTable" style="table-layout: fixed"></table>,

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