有没有办法覆盖 Primefaces 树表突出显示颜色?
不工作的例子:
tr:hover {
background: #FF0000;
}
.ui-state-hover {
background: #FF0000;
}
.ui-widget-content:hover {
background: #FF0000;
}
.ui-state-highlight {
background: #FF0000;
}
最佳答案
您尝试过使用“!important”吗?
tr:hover {
background: #FF0000!important;
}
.ui-state-hover {
background: #FF0000!important;
}
.ui-widget-content:hover {
background: #FF0000!important;
}
.ui-state-highlight {
background: #FF0000!important;
}
这将覆盖任何调用相同内容的 CSS,例如自动生成的 CSS。
关于css - 如何为 p :treeTable 设置高亮颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26428191/