简体   繁体   English

Angular 9 PrimeNg 如何设置 p-table 边框颜色的样式?

[英]Angular 9 PrimeNg how to style p-table border color?

Hot to i change the border color of p-table?对我改变 p-table 的边框颜色很感兴趣? I was able to change table header border color of the table but i don't know how to change the color of the body of the p-table.我能够更改表格 header 表格的边框颜色,但我不知道如何更改 p 表格主体的颜色。

  • body.ui-table.ui-table-tbody > tr > td { padding: 0.571em 0.857em; border: #e3e3e3; }

I have tried this in theme.css at resources/rhea/theme.css in primeng but its still no use help.我在primeng的resources/rhea/theme.css的theme.css中试过这个,但它仍然没有用处。

body.ui-table.ui-table-tbody > tr > td { border: 1px solid #dadada; }

Found it: Just find this and simply change border: 1px solid #dadada to transparent找到它:只需找到它并简单地将边框:1px solid #dadada 更改为透明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM