jQuery DataTables: control table width

后端 未结 26 2300
别那么骄傲
别那么骄傲 2020-11-29 16:29

I have a problem controlling the width of a table using the jQuery DataTables plugin. The table is supposed to be 100% of the container width, but ends up being an arbitrar

26条回答
  •  没有蜡笔的小新
    2020-11-29 17:05

    i had the similar problem and found that text in columns don't break and using this css code solved the problem

    th,td{
    max-width:120px !important;
    word-wrap: break-word
    }
    

提交回复
热议问题