primeNG - 将css样式实现为dataTable [英] primeNG - implement css style to dataTable
本文介绍了primeNG - 将css样式实现为dataTable的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想改变DataTable的颜色,但我无法实现我的自定义CSS。请帮我理解如何去做。我已阅读PrimeNG网站上的文档。
I want to change the colors of the DataTable but I cant implement my custom css to it. Please help me understand how to do it. I ve read the documentation at PrimeNG website.
我使用以下方式更改了thead风格:
I did change the thead style using :
.ui-datatable .ui-datatable-thead > tr > th {background: red;}
但是我想知道如何使用[styleClass]来实现我的自定义颜色。
but i want to know how to use [styleClass] to implement my custom colors to it.
推荐答案
您可以使用下面的css
You can use the below css
.ui-state-default.ui-unselectable-text {
background-color: red !important;
}
这篇关于primeNG - 将css样式实现为dataTable的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文