简体   繁体   English

如何 CSS select Angular-Material 表体?

[英]How to CSS select Angular-Material table tbody?

I am trying to style an Angular material table's tbody , but these selectors are not working:我正在尝试设置 Angular 材料表的tbody样式,但这些选择器不起作用:

.mat-table tbody and table tbody .mat-table tbodytable tbody

Is their a way to style the tbody only?他们只是一种风格的方式tbody

~~Also, is their a way to wrap the tbody inside a div ?~~ ~~另外,他们是一种将tbody包装在div中的方法吗?~~

::ng-deep .mat-table{/*apply you css code here*/}

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

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