如何在具有滚动条和过滤器的数据表中删除表标题后的多余空间? [英] How to remove the extra space after table heading, in datatables which has scrollbar and filter?

查看:69
本文介绍了如何在具有滚动条和过滤器的数据表中删除表标题后的多余空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用datatables.net库.如果添加滚动条,则表头和表主体之间存在间隙.有什么办法可以删除它?另外,是否有办法将搜索框移到左侧,并删除文本"Search:",而是将其添加为文本框内的占位符?

I'm using datatables.net library. There is a gap between table header and the table body, if I add scrollbar. Is there any way to remove it? Also, is there a way to move the searchbox to the left, and remove the text "Search:", and instead add it as a place holder within the textbox?

推荐答案

我不熟悉该库,但我知道人们可以轻松地修改CSS以获得所需的布局. 请检查其有关样式的文档 http://datatables.net/styling/

I'm not familiar with that library but I do know that one can easily modify CSS to achieve the desired layout. Please check their documentation about styling http://datatables.net/styling/

这篇关于如何在具有滚动条和过滤器的数据表中删除表标题后的多余空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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