首页 > 解决方案 > 制表符标题过滤器格式

问题描述

嗨,我有一个制表表,其标题都是图标

在此处输入图像描述

我想为一个字段添加一个过滤器框,但是当我使用 headerFilter:true 时,过滤器位于图标下方

在此处输入图像描述

有什么聪明的方法可以让过滤器与图标处于同一级别,空间是我页面上的一个优先级,所以理想情况下我希望它们都对齐

标签: filtertabulator

解决方案


I've solved this by modifying the tabulator css I had to give the header-filter a negative top position and it now works fine

enter image description here

`.tabulator .tabulator-header .tabulator-col .tabulator-header-filter 
{
 position: relative;  
 box-sizing: border-box;
 margin-top: -23px;
 width: 100%;
 text-align: center;
 height: 33px ;
} `   

推荐阅读