首页 > 解决方案 > 引导表,数据过滤器被 css 定位为绝对

问题描述

我需要对用 bootstrap-table 编写的代码做一些工作。列是用 data-sotrable 属性定义的。

<th data-field="Severity" data-filter-control="select" data-sortable="true">Severity</th>

导致过滤器在<th>列内被定位为绝对值:

    <th><div class="th-inner sortable both">Sort</div><div class="fht-cell"></div></th>

从 th 移动过滤器(class="fhr-cell")的最佳方法是什么?它们需要定位为相对的,高于网格。

标签: cssfilterbootstrap-4positionbootstrap-table

解决方案


推荐阅读