Datatables: Position Search Box to the top right [

2019-04-28 02:27发布

问题:

How do i position the search box to the right? By default it is to the left now

回答1:

Here is an example with the search box aligned to the right.

It looks like they use this CSS style:

.dataTables_filter {
   width: 50%;
   float: right;
   text-align: right;
}

As far as I can tell, this is the default, which means you are probably doing something that is overriding this. Could you post an example where the field is improperly aligned so we can take a look at it?