css - angularjs ng网格: how to change header style

标签 css angularjs ng-grid

如何重新设置 ng-grid 的标题样式? 特别是如何更改标题行的背景颜色和文本颜色?

最佳答案

您可以覆盖 ng-grid.css 中声明的 .ngHeaderCell 类的 background-color 属性以使用背景色你想要在标题单元格上。

如果您不想修改原始的 ng-grid css,您可以创建自己的 css 并在 ng-grid 的 css 之后加载它,稍后您可以在其中覆盖相同的 .ngHeaderCell 类与:

.ngHeaderCell {
    background-color: [your background color] !important;
    bottom: 0;
    color: [your foreground color] !important;
    position: absolute;
    top: 0;
}

关于css - angularjs ng网格: how to change header style,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24540587/

相关文章:

单击 ng-grid/ui-grid celltemplate 会导致选择行。

angularjs - ng-grid 不会滚动到最后一行

css - 仅当为一个元素设置了 2 个类时才应用 CSS 规则

php - 内联 html 编辑或重写整行

javascript - AngularJS 错误 : fnPtr is not a function

angularjs - 如何将数据从模型返回到 Controller

javascript - 具有 ng-grid 主细节范例的 angularjs 具有多选模式

jQuery 101 - 更改 CSS 不适用于高级选择器

jquery - 将底部元素居中到父 div

javascript - IonicFramework + AngularJS + 无法使用单击 HREF 根据列表中的选择呈现页面