jQuery 数据表:将搜索框定位到右上角
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13039021/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Datatables: Position Search Box to the top right
提问by yapkm01
How do i position the search box to the right? By default it is to the left now
如何将搜索框定位到右侧?默认情况下它现在在左边
回答by Kato
Here is an example with the search box aligned to the right.
It looks like they use this CSS style:
看起来他们使用这种 CSS 样式:
.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?
据我所知,这是默认设置,这意味着您可能正在执行一些覆盖此操作的操作。您能否发布一个字段未正确对齐的示例,以便我们查看一下?