数据表:右上角的位置搜索框 [英] Datatables: Position Search Box to the top right

查看:120
本文介绍了数据表:右上角的位置搜索框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将搜索框定位在右侧?默认情况下,它现在位于左侧

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

推荐答案

此处为搜索框右对齐的示例.

他们似乎使用了以下CSS样式:

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?

这篇关于数据表:右上角的位置搜索框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆