Styling PrimeNG p-tabView

馋奶兔 提交于 2021-01-28 06:35:34

问题


I fail to style the text of a PrimeNG TabView.

Here's the Stackblitz showing the problem.

What am I missing?


回答1:


One way to solve your problem is to override PrimeNG class concerning tabview title : ui-tabview-title.

So something like

.ui-tabview-title {
  color: red;
}

should do the trick. Be sure to call that CSS after PrimeNG one.

Edit

You can apply CSS on first tab header with :first-child property :

ul.ui-tabview-nav li:first-child span {
  color: red;
}

See working StackBlitz.



来源:https://stackoverflow.com/questions/53430376/styling-primeng-p-tabview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!