如何重新设置 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/