简体   繁体   中英

Set the column width of jQuery DataTables Column Filter

How to set the column width of jQuery DataTables Column Filter?

My code is like this : http://jsfiddle.net/oscar11/aobmk2of/

...
dataTable.columnFilter({
  sPlaceHolder: "head:before",
  aoColumns: [
      { type: "select", width:"10px" },  
      { type: "select" },        
      { type: "select" },  
      { type: "select" },  
      { type: "select" }
  ]
});
...

But it's not working.

Thank you.

Please apply this class.

#example select
{
    width:100px !important;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM