jQuery DataTables: control table width

后端 未结 26 2209
别那么骄傲
别那么骄傲 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:31

    I ran into a similar issue when having a div wrapped around the table.

    Adding position: relative fixed it for me.

    
    #report_container {
     float: right;
     position: relative;
     width: 100%;
    }

提交回复
热议问题