首页 > 解决方案 > JQuery Bootgrid 标题文本颜色

问题描述

我一直在尝试在 Bootgrid 中设置表格标题的样式,但只取得了有限的成功。我正在使用下面的代码,并且表格标题的背景颜色更新得很好。但是,标题的文本颜色不会改变。我下面的课程涉及以下内容:

.bg-gray { background-color: #9e9e9e !important; }
.c-white { color: #fff !important; }

<table id="data-table-selection" class="table table-hover table-bordered">
    <thead class="bg-gray c-white">
        <tr>
            <th data-column-id="id" data-type="numeric" data-identifier="true">ID</th>
            <th data-column-id="name" data-order="asc">Name</th>
            <th data-column-id="address" data-sortable="false">Physical Address</th>
            <th data-column-id="state" >Country</th>
        </tr>
    </thead>
</table>

我只是想知道我是否遗漏了什么或者在引导网格中设置标题的样式有问题?非常感谢任何帮助!

标签: jquerycssjquery-bootgrid

解决方案


推荐阅读